diff options
Diffstat (limited to 'src/main/kotlin/com/ambientaddons/features/misc/CancelInteractions.kt')
-rw-r--r-- | src/main/kotlin/com/ambientaddons/features/misc/CancelInteractions.kt | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/main/kotlin/com/ambientaddons/features/misc/CancelInteractions.kt b/src/main/kotlin/com/ambientaddons/features/misc/CancelInteractions.kt index 60f0f8f..3deff17 100644 --- a/src/main/kotlin/com/ambientaddons/features/misc/CancelInteractions.kt +++ b/src/main/kotlin/com/ambientaddons/features/misc/CancelInteractions.kt @@ -3,7 +3,7 @@ package com.ambientaddons.features.misc import AmbientAddons.Companion.config import AmbientAddons.Companion.mc import com.ambientaddons.utils.Area -import com.ambientaddons.utils.SkyBlock +import com.ambientaddons.utils.SBLocation import net.minecraft.init.Blocks import net.minecraftforge.event.entity.player.PlayerInteractEvent import net.minecraftforge.fml.common.eventhandler.SubscribeEvent @@ -11,8 +11,8 @@ import net.minecraftforge.fml.common.eventhandler.SubscribeEvent object CancelInteractions { @SubscribeEvent fun onPlayerInteract(event: PlayerInteractEvent) { - if (!SkyBlock.inSkyblock) return - if (!config.cancelInteractions || SkyBlock.area == Area.PrivateIsland) return + if (!SBLocation.inSkyblock) return + if (!config.cancelInteractions || SBLocation.area == Area.PrivateIsland) return if (event.action == PlayerInteractEvent.Action.RIGHT_CLICK_BLOCK) { if (mc.theWorld?.getBlockState(event.pos)?.block == Blocks.hopper) { event.isCanceled = true |