Fix Entities

This commit is contained in:
Arcaratus 2015-07-20 19:56:29 -04:00
parent 724f09c130
commit 06df5f5e39
8 changed files with 18 additions and 18 deletions

View file

@ -359,10 +359,10 @@ public class EntityBileDemon extends EntityDemon
if (par1)
{
this.dataWatcher.updateObject(16, b0 | 2);
this.dataWatcher.updateObject(16, Byte.valueOf((byte)(b0 | 2)));
} else
{
this.dataWatcher.updateObject(16, b0 & -3);
this.dataWatcher.updateObject(16, Byte.valueOf((byte)(b0 & -3)));
}
}

View file

@ -352,10 +352,10 @@ public class EntityBoulderFist extends EntityDemon
if (par1)
{
this.dataWatcher.updateObject(16, b0 | 2);
this.dataWatcher.updateObject(16, Byte.valueOf((byte)(b0 | 2)));
} else
{
this.dataWatcher.updateObject(16, b0 & -3);
this.dataWatcher.updateObject(16, Byte.valueOf((byte)(b0 & -3)));
}
}

View file

@ -267,7 +267,7 @@ public class EntityFallenAngel extends EntityDemon implements IRangedAttackMob
if (itemstack.stackSize <= 0)
{
par1EntityPlayer.inventory.setInventorySlotContents(par1EntityPlayer.inventory.currentItem, (ItemStack) null);
par1EntityPlayer.inventory.setInventorySlotContents(par1EntityPlayer.inventory.currentItem, null);
}
return true;
@ -297,7 +297,7 @@ public class EntityFallenAngel extends EntityDemon implements IRangedAttackMob
if (itemstack.stackSize <= 0)
{
par1EntityPlayer.inventory.setInventorySlotContents(par1EntityPlayer.inventory.currentItem, (ItemStack) null);
par1EntityPlayer.inventory.setInventorySlotContents(par1EntityPlayer.inventory.currentItem, null);
}
if (!this.worldObj.isRemote)
@ -353,10 +353,10 @@ public class EntityFallenAngel extends EntityDemon implements IRangedAttackMob
if (par1)
{
this.dataWatcher.updateObject(16, b0 | 2);
this.dataWatcher.updateObject(16, Byte.valueOf((byte)(b0 | 2)));
} else
{
this.dataWatcher.updateObject(16, b0 & -3);
this.dataWatcher.updateObject(16, Byte.valueOf((byte)(b0 & -3)));
}
}

View file

@ -382,10 +382,10 @@ public class EntityIceDemon extends EntityDemon implements IRangedAttackMob
if (par1)
{
this.dataWatcher.updateObject(16, b0 | 2);
this.dataWatcher.updateObject(16, Byte.valueOf((byte)(b0 | 2)));
} else
{
this.dataWatcher.updateObject(16, b0 & -3);
this.dataWatcher.updateObject(16, Byte.valueOf((byte)(b0 & -3)));
}
}

View file

@ -366,10 +366,10 @@ public class EntityLowerGuardian extends EntityDemon
if (par1)
{
this.dataWatcher.updateObject(16, b0 | 2);
this.dataWatcher.updateObject(16, Byte.valueOf((byte)(b0 | 2)));
} else
{
this.dataWatcher.updateObject(16, b0 & -3);
this.dataWatcher.updateObject(16, Byte.valueOf((byte)(b0 & -3)));
}
}

View file

@ -352,10 +352,10 @@ public class EntityShade extends EntityDemon
if (par1)
{
this.dataWatcher.updateObject(16, b0 | 2);
this.dataWatcher.updateObject(16, Byte.valueOf((byte)(b0 | 2)));
} else
{
this.dataWatcher.updateObject(16, b0 & -3);
this.dataWatcher.updateObject(16, Byte.valueOf((byte)(b0 & -3)));
}
}

View file

@ -349,10 +349,10 @@ public class EntitySmallEarthGolem extends EntityDemon implements IRangedAttackM
if (par1)
{
this.dataWatcher.updateObject(16, b0 | 2);
this.dataWatcher.updateObject(16, Byte.valueOf((byte)(b0 | 2)));
} else
{
this.dataWatcher.updateObject(16, b0 & -3);
this.dataWatcher.updateObject(16, Byte.valueOf((byte)(b0 & -3)));
}
}

View file

@ -361,10 +361,10 @@ public class EntityWingedFireDemon extends EntityDemon implements IRangedAttackM
if (par1)
{
this.dataWatcher.updateObject(16, b0 | 2);
this.dataWatcher.updateObject(16, Byte.valueOf((byte)(b0 | 2)));
} else
{
this.dataWatcher.updateObject(16, b0 & -3);
this.dataWatcher.updateObject(16, Byte.valueOf((byte)(b0 & -3)));
}
}