diff --git a/src/main/kotlin/org/thirdTune/apex_extra/ApexExtra.kt b/src/main/kotlin/org/thirdTune/apex_extra/ApexExtra.kt index d0965cf..f158310 100644 --- a/src/main/kotlin/org/thirdTune/apex_extra/ApexExtra.kt +++ b/src/main/kotlin/org/thirdTune/apex_extra/ApexExtra.kt @@ -13,7 +13,6 @@ class ApexExtra { companion object{ const val MOD_ID = "apex_extra" const val MOD_NAME = "Apex Extra" - var nearPlayerHighLight = false } init{ init() diff --git a/src/main/kotlin/org/thirdTune/apex_extra/ClientHandler.kt b/src/main/kotlin/org/thirdTune/apex_extra/ClientHandler.kt index a86fd91..d13e8e4 100644 --- a/src/main/kotlin/org/thirdTune/apex_extra/ClientHandler.kt +++ b/src/main/kotlin/org/thirdTune/apex_extra/ClientHandler.kt @@ -3,10 +3,9 @@ package org.thirdTune.apex_extra import net.minecraft.client.Minecraft import net.minecraft.world.entity.player.Player import net.minecraftforge.event.TickEvent -import org.thirdTune.apex_extra.ApexExtra.Companion.nearPlayerHighLight object ClientHandler { - + var nearPlayerHighLight = false fun onClientTick(event: TickEvent.ClientTickEvent) { if(event.phase != TickEvent.Phase.START)return val mc = Minecraft.getInstance() diff --git a/src/main/kotlin/org/thirdTune/apex_extra/items/AllfatherEye.kt b/src/main/kotlin/org/thirdTune/apex_extra/items/AllfatherEye.kt index 7d0c2b7..e9ab228 100644 --- a/src/main/kotlin/org/thirdTune/apex_extra/items/AllfatherEye.kt +++ b/src/main/kotlin/org/thirdTune/apex_extra/items/AllfatherEye.kt @@ -6,7 +6,7 @@ import net.minecraft.world.entity.player.Player import net.minecraft.world.item.Item import net.minecraft.world.item.ItemStack import net.minecraft.world.level.Level -import org.thirdTune.apex_extra.ApexExtra +import org.thirdTune.apex_extra.ClientHandler class AllfatherEye : Item(Properties()) { // 持续时间 (秒) @@ -31,7 +31,7 @@ class AllfatherEye : Item(Properties()) { selectedIndex: Int ) { if (showTime == 0) { - ApexExtra.nearPlayerHighLight = false + ClientHandler.nearPlayerHighLight = false } else { showTime-- }