From 37bf628331683011db9d36bc71f9b2b3229a60f7 Mon Sep 17 00:00:00 2001 From: koolkrafter5 Date: Tue, 29 Jul 2025 09:18:19 -0400 Subject: [PATCH] Fix Omni Mode Server Crash (#38) Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: Alexdoru <57050655+Alexdoru@users.noreply.github.com> --- dependencies.gradle | 4 ++-- .../common/items/equipment/ItemVoidwalkerBoots.java | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/dependencies.gradle b/dependencies.gradle index 3f0efd7..e4cf4b6 100644 --- a/dependencies.gradle +++ b/dependencies.gradle @@ -3,9 +3,9 @@ dependencies { api('com.github.GTNewHorizons:Baubles-Expanded:2.1.9-GTNH:dev') api('thaumcraft:Thaumcraft:1.7.10-4.2.3.5:dev') - api('com.github.GTNewHorizons:ThaumicBoots:1.4.9:dev') { + api('com.github.GTNewHorizons:ThaumicBoots:1.4.13:dev') { exclude group: 'com.github.GTNewHorizons', module: 'Tainted-Magic' exclude module: 'Baubles' } - compileOnly('com.github.GTNewHorizons:GT5-Unofficial:5.09.51.409:dev') + compileOnly('com.github.GTNewHorizons:GT5-Unofficial:5.09.51.419:dev') } diff --git a/src/main/java/taintedmagic/common/items/equipment/ItemVoidwalkerBoots.java b/src/main/java/taintedmagic/common/items/equipment/ItemVoidwalkerBoots.java index ade4ae9..443f955 100644 --- a/src/main/java/taintedmagic/common/items/equipment/ItemVoidwalkerBoots.java +++ b/src/main/java/taintedmagic/common/items/equipment/ItemVoidwalkerBoots.java @@ -2,7 +2,6 @@ package taintedmagic.common.items.equipment; import java.util.List; -import net.minecraft.client.Minecraft; import net.minecraft.entity.Entity; import net.minecraft.entity.EntityLivingBase; import net.minecraft.entity.player.EntityPlayer; @@ -33,6 +32,7 @@ import thaumcraft.api.aspects.Aspect; import thaumcraft.common.Thaumcraft; import thaumcraft.common.items.armor.Hover; import thaumicboots.api.IBoots; +import thaumicboots.mixins.early.minecraft.EntityLivingBaseAccessor; // import static taintedmagic.common.items.equipment.ItemVoidwalkerSash.sashBuff; @@ -195,7 +195,7 @@ public class ItemVoidwalkerBoots extends ItemArmor implements IVoidwalker, IVisD if (player.moveStrafing != 0.0) { player.moveFlying(player.moveStrafing, 0.0F, bonus); } - boolean jumping = Minecraft.getMinecraft().gameSettings.keyBindJump.getIsKeyPressed(); + boolean jumping = ((EntityLivingBaseAccessor) player).getIsJumping(); boolean sneaking = player.isSneaking(); if (sneaking && !jumping && !player.onGround) { player.motionY -= bonus;