Fixed last PR
This commit is contained in:
parent
1c74e3ce7a
commit
65f0bb2175
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue