diff --git a/libs/majrusz-library-1.19.3-3.2.0.jar b/libs/majrusz-library-1.19.3-3.2.0.jar index 16b842b0e..bc12ee46d 100644 Binary files a/libs/majrusz-library-1.19.3-3.2.0.jar and b/libs/majrusz-library-1.19.3-3.2.0.jar differ diff --git a/src/main/java/com/majruszsdifficulty/items/SoulJarItem.java b/src/main/java/com/majruszsdifficulty/items/SoulJarItem.java index 2d1c4619f..2285d7792 100644 --- a/src/main/java/com/majruszsdifficulty/items/SoulJarItem.java +++ b/src/main/java/com/majruszsdifficulty/items/SoulJarItem.java @@ -23,7 +23,9 @@ import net.minecraft.world.item.ItemStack; import net.minecraft.world.item.Rarity; import net.minecraft.world.level.Level; +import net.minecraftforge.api.distmarker.Dist; import net.minecraftforge.common.ForgeMod; +import net.minecraftforge.fml.DistExecutor; import javax.annotation.Nullable; import java.util.ArrayList; @@ -149,8 +151,9 @@ private void increaseSpeed( OnBreakSpeed.Data data ) { } private void addTooltip( OnItemAttributeTooltip.Data data ) { + Player player = DistExecutor.unsafeCallWhenOn( Dist.CLIENT, ()->()->Minecraft.getInstance().player ); BonusInfo bonusInfo = new BonusInfo( data.itemStack.getOrCreateTag() ); - float multiplier = getMultiplier( Minecraft.getInstance().player, data.itemStack ); + float multiplier = getMultiplier( player, data.itemStack ); for( BonusType bonusType : bonusInfo.getBonusTypes() ) { data.add( EquipmentSlot.OFFHAND, bonusType.getBonusComponent( multiplier ) ); }