Bugfix for numeric range of mob and window IDs.
This commit is contained in:
parent
56f612c186
commit
28345bf839
|
@ -0,0 +1,14 @@
|
|||
--- ../src_base/minecraft/net/minecraft/src/Packet100OpenWindow.java 0000-00-00 00:00:00.000000000 -0000
|
||||
+++ ../src_work/minecraft/net/minecraft/src/Packet100OpenWindow.java 0000-00-00 00:00:00.000000000 -0000
|
||||
@@ -25,9 +25,9 @@
|
||||
throws IOException
|
||||
{
|
||||
windowId = datainputstream.readByte();
|
||||
- inventoryType = datainputstream.readByte();
|
||||
+ inventoryType = datainputstream.readByte()&0xFF;
|
||||
windowTitle = readString(datainputstream, 16);
|
||||
- slotsCount = datainputstream.readByte();
|
||||
+ slotsCount = datainputstream.readByte()&0xFF;
|
||||
}
|
||||
|
||||
public void writePacketData(DataOutputStream dataoutputstream)
|
|
@ -0,0 +1,20 @@
|
|||
--- ../src_base/minecraft/net/minecraft/src/Packet24MobSpawn.java 0000-00-00 00:00:00.000000000 -0000
|
||||
+++ ../src_work/minecraft/net/minecraft/src/Packet24MobSpawn.java 0000-00-00 00:00:00.000000000 -0000
|
||||
@@ -34,7 +34,7 @@
|
||||
throws IOException
|
||||
{
|
||||
entityId = datainputstream.readInt();
|
||||
- type = datainputstream.readByte();
|
||||
+ type = datainputstream.readByte()&0xFF;
|
||||
xPosition = datainputstream.readInt();
|
||||
yPosition = datainputstream.readInt();
|
||||
zPosition = datainputstream.readInt();
|
||||
@@ -72,7 +72,7 @@
|
||||
}
|
||||
|
||||
public int entityId;
|
||||
- public byte type;
|
||||
+ public int type;
|
||||
public int xPosition;
|
||||
public int yPosition;
|
||||
public int zPosition;
|
|
@ -0,0 +1,14 @@
|
|||
--- ../src_base/minecraft_server/net/minecraft/src/Packet100OpenWindow.java 0000-00-00 00:00:00.000000000 -0000
|
||||
+++ ../src_work/minecraft_server/net/minecraft/src/Packet100OpenWindow.java 0000-00-00 00:00:00.000000000 -0000
|
||||
@@ -33,9 +33,9 @@
|
||||
throws IOException
|
||||
{
|
||||
windowId = datainputstream.readByte();
|
||||
- inventoryType = datainputstream.readByte();
|
||||
+ inventoryType = datainputstream.readByte()&0xFF;
|
||||
windowTitle = readString(datainputstream, 16);
|
||||
- slotsCount = datainputstream.readByte();
|
||||
+ slotsCount = datainputstream.readByte()&0xFF;
|
||||
}
|
||||
|
||||
public void writePacketData(DataOutputStream dataoutputstream)
|
|
@ -0,0 +1,20 @@
|
|||
--- ../src_base/minecraft_server/net/minecraft/src/Packet24MobSpawn.java 0000-00-00 00:00:00.000000000 -0000
|
||||
+++ ../src_work/minecraft_server/net/minecraft/src/Packet24MobSpawn.java 0000-00-00 00:00:00.000000000 -0000
|
||||
@@ -34,7 +34,7 @@
|
||||
throws IOException
|
||||
{
|
||||
entityId = datainputstream.readInt();
|
||||
- type = datainputstream.readByte();
|
||||
+ type = datainputstream.readByte()&0xFF;
|
||||
xPosition = datainputstream.readInt();
|
||||
yPosition = datainputstream.readInt();
|
||||
zPosition = datainputstream.readInt();
|
||||
@@ -67,7 +67,7 @@
|
||||
}
|
||||
|
||||
public int entityId;
|
||||
- public byte type;
|
||||
+ public int type;
|
||||
public int xPosition;
|
||||
public int yPosition;
|
||||
public int zPosition;
|
Loading…
Reference in New Issue