mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/GabsPuNs-MinecraftConsoles.git
synced 2026-07-12 16:28:43 +00:00
Use BYTE Win Typedef instead of byte typedef from Minecraft.World
This commit is contained in:
@@ -108,7 +108,7 @@ Tag *Tag::readNamedTag(DataInput *dis, int tagDepth)
|
||||
return new EndTag();
|
||||
}
|
||||
|
||||
byte type = dis->readByte();
|
||||
BYTE type = dis->readByte();
|
||||
if (type == 0) {
|
||||
depth--;
|
||||
return new EndTag();
|
||||
@@ -129,7 +129,7 @@ Tag *Tag::readNamedTag(DataInput *dis, int tagDepth)
|
||||
return new EndTag();
|
||||
}
|
||||
// short length = dis.readShort();
|
||||
// byte[] bytes = new byte[length];
|
||||
// BYTE[] bytes = new BYTE[length];
|
||||
// dis.readFully(bytes);
|
||||
|
||||
tag->load(dis, tagDepth);
|
||||
@@ -142,7 +142,7 @@ void Tag::writeNamedTag(Tag *tag, DataOutput *dos)
|
||||
dos->writeByte(tag->getId());
|
||||
if (tag->getId() == Tag::TAG_End) return;
|
||||
|
||||
// byte[] bytes = tag.getName().getBytes("UTF-8");
|
||||
// BYTE[] bytes = tag.getName().getBytes("UTF-8");
|
||||
// dos.writeShort(bytes.length);
|
||||
// dos.write(bytes);
|
||||
dos->writeUTF(tag->getName());
|
||||
@@ -150,7 +150,7 @@ void Tag::writeNamedTag(Tag *tag, DataOutput *dos)
|
||||
tag->write(dos);
|
||||
}
|
||||
|
||||
Tag *Tag::newTag(byte type, const wstring &name)
|
||||
Tag *Tag::newTag(BYTE type, const wstring &name)
|
||||
{
|
||||
switch (type)
|
||||
{
|
||||
@@ -182,7 +182,7 @@ Tag *Tag::newTag(byte type, const wstring &name)
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
const wchar_t *Tag::getTagName(byte type)
|
||||
const wchar_t *Tag::getTagName(BYTE type)
|
||||
{
|
||||
switch (type)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user