mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/4jcraft.git
synced 2026-06-02 11:55:13 +00:00
You shall fix ze bugs you shall ve happy
This commit is contained in:
@@ -68,7 +68,7 @@ void DataOutputStream::close()
|
||||
//v - a byte value to be written.
|
||||
void DataOutputStream::writeByte(byte a)
|
||||
{
|
||||
stream->write( a );
|
||||
stream->write( static_cast<unsigned int>(a) );
|
||||
}
|
||||
|
||||
//Converts the double argument to a long using the doubleToLongBits method in class Double,
|
||||
@@ -176,7 +176,7 @@ void DataOutputStream::writeChars(const wstring& str)
|
||||
//v - a boolean value to be written.
|
||||
void DataOutputStream::writeBoolean(bool b)
|
||||
{
|
||||
stream->write( b ? (byte)1 : (byte)0 );
|
||||
stream->write( b ? 1 : 0 );
|
||||
// TODO 4J Stu - Error handling?
|
||||
written += 1;
|
||||
}
|
||||
@@ -265,4 +265,4 @@ void DataOutputStream::writePlayerUID(PlayerUID player)
|
||||
#else
|
||||
writeLong(player);
|
||||
#endif // PS3
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user