Fix crash with forge 1809.

This commit is contained in:
Alexander 2016-03-25 22:05:26 -04:00
parent 1aa5f2e85c
commit 8be3c5ea97
3 changed files with 9 additions and 9 deletions

View File

@ -35,7 +35,7 @@ archivesBaseName = "ironchest"
// Setup the forge minecraft plugin data. Specify the preferred forge/minecraft version here
minecraft {
version = "1.9-12.16.0.1802-1.9"
version = "1.9-12.16.0.1809-1.9"
mappings = "snapshot_20160319"
runDir = "run"
}

View File

@ -10,7 +10,7 @@ public class OcelotsSitOnChestsHandler
@SubscribeEvent
public void changeSittingTaskForOcelots(LivingEvent.LivingUpdateEvent evt)
{
if (evt.entityLiving.ticksExisted < 5 && evt.entityLiving instanceof EntityOcelot)
if (evt.getEntityLiving().ticksExisted < 5 && evt.getEntityLiving() instanceof EntityOcelot)
{
// EntityOcelot ocelot = (EntityOcelot) evt.entityLiving;
// Set<EntityAITasks.EntityAITaskEntry> tasks = ocelot.tasks.taskEntries;

View File

@ -12,14 +12,14 @@ public class IronChestEventHandler
@SubscribeEvent
public void onPreTextureStiching(TextureStitchEvent.Pre event)
{
if (event.map == FMLClientHandler.instance().getClient().getTextureMapBlocks())
if (event.getMap() == FMLClientHandler.instance().getClient().getTextureMapBlocks())
{
event.map.registerSprite(new ResourceLocation("ironchest:blocks/copperbreak"));
event.map.registerSprite(new ResourceLocation("ironchest:blocks/crystalbreak"));
event.map.registerSprite(new ResourceLocation("ironchest:blocks/diamondbreak"));
event.map.registerSprite(new ResourceLocation("ironchest:blocks/goldbreak"));
event.map.registerSprite(new ResourceLocation("ironchest:blocks/ironbreak"));
event.map.registerSprite(new ResourceLocation("ironchest:blocks/silverbreak"));
event.getMap().registerSprite(new ResourceLocation("ironchest:blocks/copperbreak"));
event.getMap().registerSprite(new ResourceLocation("ironchest:blocks/crystalbreak"));
event.getMap().registerSprite(new ResourceLocation("ironchest:blocks/diamondbreak"));
event.getMap().registerSprite(new ResourceLocation("ironchest:blocks/goldbreak"));
event.getMap().registerSprite(new ResourceLocation("ironchest:blocks/ironbreak"));
event.getMap().registerSprite(new ResourceLocation("ironchest:blocks/silverbreak"));
}
}
}