Added GroundUnitType, compile fixed

This commit is contained in:
Anuken
2018-03-16 00:30:41 -04:00
parent 52c0a8e573
commit ad2e2032e6
9 changed files with 115 additions and 70 deletions
+3 -10
View File
@@ -28,11 +28,10 @@ public class NetEvents {
Net.send(new GameOverPacket(), SendMode.tcp);
}
public static void handleUnitDeath(Unit enemy){
public static void handleUnitDeath(Unit entity){
EntityDeathPacket packet = new EntityDeathPacket();
packet.id = enemy.id;
packet.group = (byte)enemy.getGroup().getID();
packet.id = entity.id;
packet.group = (byte)entity.getGroup().getID();
Net.send(packet, SendMode.tcp);
}
@@ -49,12 +48,6 @@ public class NetEvents {
Net.send(packet, SendMode.udp);
}
public static void handlePlayerDeath(){
EntityDeathPacket packet = new EntityDeathPacket();
packet.id = Vars.player.id;
Net.send(packet, SendMode.tcp);
}
public static void handleBlockConfig(Tile tile, byte data){
BlockConfigPacket packet = new BlockConfigPacket();
packet.data = data;