Fix dodge ring crash, fix logo

This commit is contained in:
Vincent Lee authored and Vincent Lee committed 2019-06-02 12:44:22 -07:00
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)