Use BYTE Win Typedef instead of byte typedef from Minecraft.World

This commit is contained in:
GabsPuNs
2026-05-10 21:03:03 -04:00
parent 20d395b88d
commit 3e7983ab3c
216 changed files with 798 additions and 800 deletions

View File

@@ -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)
{