Fixed most things besides drawing

This commit is contained in:
Anuken
2018-12-22 22:17:28 -05:00
parent 3abfaf1bca
commit 44e4ffbe62
175 changed files with 666 additions and 688 deletions

View File

@@ -34,7 +34,7 @@ public class ByteSerializer implements Serialization{
if(id == -2){
return FrameworkSerializer.read(byteBuffer);
}else{
Packet packet = Pooling.obtain((Class<Packet>) Registrator.getByID(id).type, (Supplier<Packet>) Registrator.getByID(id).constructor);
Packet packet = Pools.obtain((Class<Packet>) Registrator.getByID(id).type, (Supplier<Packet>) Registrator.getByID(id).constructor);
packet.read(byteBuffer);
return packet;
}

View File

@@ -162,7 +162,7 @@ public class KryoClient implements ClientProvider{
client.sendUDP(object);
}
Pooling.free(object);
Pools.free(object);
}
@Override