Project-wide refactoring, link crash fixes
This commit is contained in:
@@ -20,7 +20,7 @@ import io.anuke.ucore.function.Consumer;
|
||||
import java.io.IOException;
|
||||
|
||||
public class Net{
|
||||
public static final int version = 11;
|
||||
public static final int version = 12;
|
||||
|
||||
private static boolean server;
|
||||
private static boolean active;
|
||||
|
||||
@@ -21,10 +21,9 @@ import java.nio.ByteBuffer;
|
||||
|
||||
public class NetworkIO {
|
||||
|
||||
public static void writeMap(Map map, OutputStream os){
|
||||
public static void writeMap(Pixmap map, OutputStream os){
|
||||
try(DataOutputStream stream = new DataOutputStream(os)){
|
||||
Pixmap pix = map.pixmap;
|
||||
ByteBuffer buffer = pix.getPixels();
|
||||
ByteBuffer buffer = map.getPixels();
|
||||
UCore.log("Buffer position: " + buffer.position());
|
||||
stream.writeShort(map.getWidth());
|
||||
stream.writeShort(map.getHeight());
|
||||
|
||||
Reference in New Issue
Block a user