mirror of
https://github.com/GTNewHorizons/Botania.git
synced 2026-11-17 19:05:16 +00:00
Fix dodge ring crash, fix logo
This commit is contained in:
1 parent
ed3ef437d5
commit
12695ae3f4
3 files changed
+3
-1
No files matched your search
@@ -53,6 +53,8 @@ public class ItemDodgeRing extends ItemBauble {
|
||||
@OnlyIn(Dist.CLIENT)
|
||||
public static void onKeyDown(InputEvent.KeyInputEvent event) {
|
||||
Minecraft mc = Minecraft.getInstance();
|
||||
if(mc.player == null)
|
||||
return;
|
||||
|
||||
ItemStack ringStack = Botania.curiosLoaded ? CurioIntegration.findOrEmpty(ModItems.dodgeRing, mc.player) : ItemStack.EMPTY;
|
||||
if(ringStack.isEmpty() || ItemNBTHelper.getInt(ringStack, TAG_DODGE_COOLDOWN, 0) > 0)
|
||||
|
||||
Reference in new issue
Block a user