mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/GabsPuNs-MinecraftConsoles.git
synced 2026-06-19 19:12:02 +00:00
Use BYTE Win Typedef instead of byte typedef from Minecraft.World
"byte" wasnt working anymore for some reason
This commit is contained in:
@@ -12,7 +12,7 @@
|
||||
|
||||
|
||||
#define BLOCK_REGION_UPDATE_FULLCHUNK 0x01
|
||||
#define BLOCK_REGION_UPDATE_ZEROHEIGHT 0x02 // added so we can still send a byte for ys, which really needs the range 0-256
|
||||
#define BLOCK_REGION_UPDATE_ZEROHEIGHT 0x02 // added so we can still send a BYTE for ys, which really needs the range 0-256
|
||||
|
||||
BlockRegionUpdatePacket::~BlockRegionUpdatePacket()
|
||||
{
|
||||
@@ -89,7 +89,7 @@ BlockRegionUpdatePacket::BlockRegionUpdatePacket(int x, int y, int z, int xs, in
|
||||
|
||||
void BlockRegionUpdatePacket::read(DataInputStream *dis) //throws IOException
|
||||
{
|
||||
byte chunkFlags = dis->readByte();
|
||||
BYTE chunkFlags = dis->readByte();
|
||||
x = dis->readInt();
|
||||
y = dis->readShort();
|
||||
z = dis->readInt();
|
||||
@@ -154,7 +154,7 @@ void BlockRegionUpdatePacket::read(DataInputStream *dis) //throws IOException
|
||||
|
||||
void BlockRegionUpdatePacket::write(DataOutputStream *dos) // throws IOException
|
||||
{
|
||||
byte chunkFlags = 0;
|
||||
BYTE chunkFlags = 0;
|
||||
if(bIsFullChunk) chunkFlags |= BLOCK_REGION_UPDATE_FULLCHUNK;
|
||||
if(ys == 0) chunkFlags |= BLOCK_REGION_UPDATE_ZEROHEIGHT;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user