remove random import
This commit is contained in:
parent
1ac0897c0e
commit
87877c647a
1 changed files with 1 additions and 5 deletions
|
@ -3,14 +3,10 @@ package techreborn.events;
|
|||
import cpw.mods.fml.common.eventhandler.EventPriority;
|
||||
import cpw.mods.fml.common.eventhandler.SubscribeEvent;
|
||||
import cpw.mods.fml.common.gameevent.TickEvent;
|
||||
import cpw.mods.fml.common.gameevent.TickEvent.PlayerTickEvent;
|
||||
import cpw.mods.fml.relauncher.Side;
|
||||
import net.minecraft.entity.player.EntityPlayer;
|
||||
import net.minecraft.item.Item;
|
||||
import tconstruct.armor.ArmorTickHandler;
|
||||
import techreborn.api.TechRebornItems;
|
||||
import techreborn.init.ModItems;
|
||||
import techreborn.items.tools.ItemCloakingDevice;
|
||||
|
||||
public class TRTickHandler extends TickEvent {
|
||||
public TRTickHandler(Type type, Side side, Phase phase) {
|
||||
|
@ -21,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(3).getItem() : null;
|
||||
Item chestslot = player.getEquipmentInSlot(3) != null ? player.getEquipmentInSlot(3v).getItem() : null;
|
||||
|
||||
if(previouslyWearing != chestslot && previouslyWearing == ModItems.cloakingDevice && player.isInvisible())
|
||||
player.setInvisible(false);
|
||||
|
|
Loading…
Add table
Reference in a new issue