Removed some references to Minecraft.getMinecraft()

This commit is contained in:
Adubbz G 2013-06-23 07:39:18 +10:00
parent 13a900e7dd
commit dda788fa6f
1 changed files with 3 additions and 4 deletions

View File

@ -1,9 +1,7 @@
package biomesoplenty.handlers;
import cpw.mods.fml.client.FMLClientHandler;
import net.minecraft.block.Block;
import net.minecraft.block.BlockCloth;
import net.minecraft.client.Minecraft;
import net.minecraft.entity.Entity;
import net.minecraft.entity.EntityCreature;
import net.minecraft.entity.EntityLiving;
@ -37,6 +35,7 @@ import biomesoplenty.configuration.BOPConfiguration;
import biomesoplenty.entities.ai.EntityAITemptArmour;
import biomesoplenty.helpers.AchievementHelper;
import biomesoplenty.helpers.TeleporterPromised;
import cpw.mods.fml.client.FMLClientHandler;
public class EntityEventHandler
{
@ -194,7 +193,7 @@ public class EntityEventHandler
{
entitywolf.setCollarColor(i)
;
if (!Minecraft.getMinecraft().thePlayer.capabilities.isCreativeMode)
if (!event.entityPlayer.capabilities.isCreativeMode)
{
--itemstack.stackSize;
}
@ -210,7 +209,7 @@ public class EntityEventHandler
{
entitysheep.setFleeceColor(i);
if (!Minecraft.getMinecraft().thePlayer.capabilities.isCreativeMode)
if (!event.entityPlayer.capabilities.isCreativeMode)
{
--itemstack.stackSize;
}