Fixed most things besides drawing
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
@@ -162,7 +162,7 @@ public class KryoClient implements ClientProvider{
|
||||
client.sendUDP(object);
|
||||
}
|
||||
|
||||
Pooling.free(object);
|
||||
Pools.free(object);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user