From 8b48a515f1a426d4c6cddea7bbb68a69e86f7235 Mon Sep 17 00:00:00 2001 From: Christian Date: Tue, 14 Aug 2012 13:42:17 -0400 Subject: [PATCH] Tweaks for ocelots. fix mcmod.info --- .../common/cpw/mods/ironchest/OcelotsSitOnChestsHandler.java | 2 +- IronChests2/mcmod.info | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/IronChests2/common/cpw/mods/ironchest/OcelotsSitOnChestsHandler.java b/IronChests2/common/cpw/mods/ironchest/OcelotsSitOnChestsHandler.java index e1bffbf..885244a 100644 --- a/IronChests2/common/cpw/mods/ironchest/OcelotsSitOnChestsHandler.java +++ b/IronChests2/common/cpw/mods/ironchest/OcelotsSitOnChestsHandler.java @@ -12,7 +12,7 @@ import net.minecraftforge.event.entity.living.LivingSpecialSpawnEvent; public class OcelotsSitOnChestsHandler { @ForgeSubscribe public void changeSittingTaskForOcelots(LivingEvent.LivingUpdateEvent evt) { - if (evt.entityLiving instanceof EntityOcelot && evt.entityLiving.ticksExisted < 5) + if (evt.entityLiving.ticksExisted < 5 && evt.entityLiving instanceof EntityOcelot) { EntityOcelot ocelot = (EntityOcelot) evt.entityLiving; @SuppressWarnings("unchecked") diff --git a/IronChests2/mcmod.info b/IronChests2/mcmod.info index 0ddf6f9..98f0a0a 100644 --- a/IronChests2/mcmod.info +++ b/IronChests2/mcmod.info @@ -1,8 +1,8 @@ [ { - "modid": "mod_IronChest", + "modid": "IronChest", "name": "Iron Chest", - "description": "New chests with larger sizes, with in-place upgrade items. + "description": "New chests with larger sizes, with in-place upgrade items. The feature chest is the crystal chest, which is transparent - some inventory contents are visible without opening the chest", "version": "@VERSION@", "mcversion": "1.2.5",