<400 errors

This commit is contained in:
aidancbrady committed 2016-05-25 10:10:47 -04:00
1 parent af008b9395
commit c73eef6be8
90 files changed
+880 -749

No files matched your search

@@ -75,7 +75,7 @@ public class ItemBlockCardboardBox extends ItemBlock
Block block = state.getBlock();
int meta = block.getMetaFromState(state);
if(!world.isRemote && MekanismAPI.isBlockCompatible(Item.getItemFromBlock(block), meta) && block.getBlockHardness(world, pos) != -1)
if(!world.isRemote && MekanismAPI.isBlockCompatible(Item.getItemFromBlock(block), meta) && state.getBlockHardness(world, pos) != -1)
{
BlockData data = new BlockData();
data.block = block;
@@ -156,7 +156,7 @@ public class ItemBlockCardboardBox extends ItemBlock
@SubscribeEvent
public void onEntitySpawn(EntityJoinWorldEvent event)
{
if(event.entity instanceof EntityItem && isMonitoring)
if(event.getEntity() instanceof EntityItem && isMonitoring)
{
event.setCanceled(true);
}