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

"byte" wasnt working anymore for some reason
This commit is contained in:
GabsPuNs
2026-04-13 17:54:28 -04:00
parent e90e585ef0
commit 40d48948ff
233 changed files with 4751 additions and 930 deletions

View File

@@ -31,14 +31,14 @@ ConsoleSaveFileOutputStream::ConsoleSaveFileOutputStream(ConsoleSaveFile *saveFi
m_saveFile->setFilePointer( m_file, 0, nullptr, FILE_BEGIN );
}
//Writes the specified byte to this file output stream. Implements the write method of OutputStream.
//Writes the specified BYTE to this file output stream. Implements the write method of OutputStream.
//Parameters:
//b - the byte to be written.
//b - the BYTE to be written.
void ConsoleSaveFileOutputStream::write(unsigned int b)
{
DWORD numberOfBytesWritten;
byte value = static_cast<byte>(b);
BYTE value = static_cast<BYTE>(b);
BOOL result = m_saveFile->writeFile(
m_file,
@@ -57,7 +57,7 @@ void ConsoleSaveFileOutputStream::write(unsigned int b)
}
}
//Writes b.length bytes from the specified byte array to this file output stream.
//Writes b.length bytes from the specified BYTE array to this file output stream.
//Parameters:
//b - the data.
void ConsoleSaveFileOutputStream::write(byteArray b)
@@ -81,7 +81,7 @@ void ConsoleSaveFileOutputStream::write(byteArray b)
}
}
//Writes len bytes from the specified byte array starting at offset off to this file output stream.
//Writes len bytes from the specified BYTE array starting at offset off to this file output stream.
//Parameters:
//b - the data.
//off - the start offset in the data.