Fixed last PR

This commit is contained in:
modmuss50 2015-08-14 00:09:44 +01:00
parent 1c74e3ce7a
commit 65f0bb2175

View file

@ -17,7 +17,7 @@ public class TRTickHandler extends TickEvent {
@SubscribeEvent(priority=EventPriority.NORMAL, receiveCanceled=true)
public void onPlayerTick(TickEvent.PlayerTickEvent e) {
EntityPlayer player = e.player;
Item chestslot = player.getEquipmentInSlot(3) != null ? player.getEquipmentInSlot(3v).getItem() : null;
Item chestslot = player.getEquipmentInSlot(3) != null ? player.getEquipmentInSlot(3).getItem() : null;
if(previouslyWearing != chestslot && previouslyWearing == ModItems.cloakingDevice && player.isInvisible())
player.setInvisible(false);