package andrew.powersuits.common;

import andrew.powersuits.tick.ClientTickHandler;
import cpw.mods.fml.common.network.Player;
import net.machinemuse.powersuits.network.MusePacket;
import net.minecraft.client.Minecraft;
import net.minecraft.client.entity.EntityClientPlayerMP;
import net.minecraft.entity.player.EntityPlayerMP;
import net.minecraft.world.World;

import java.io.DataInputStream;

/**
 * Created by User: Andrew2448
 * 1:30 PM 4/27/13
 */
public class AndrewPacketMagnetMode extends MusePacket {

    protected int entityID;

    public AndrewPacketMagnetMode(Player player, int id) {
        super(player);
        writeInt(id);
    }

    public AndrewPacketMagnetMode(DataInputStream data, Player player) {
        super(data, player);
        entityID = readInt();
    }

    public void handleClient(EntityClientPlayerMP player) {
        Minecraft mc = Minecraft.getMinecraft();
        System.out.println("Handle Client");
        ClientTickHandler.instance().addSMPMagneticItem(entityID, (World)mc.theWorld);
    }

    public void handleServer(EntityPlayerMP player) {

    }

}

@@ -324,42 +324,8 @@
 rMP;
-%0Aimport net.minecraft.world.World;
 %0A%0Aim
@@ -974,15 +974,8 @@
 ID, 
-(World)
 mc.t

Revert "Another possible fix."