mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/4jcraft.git
synced 2026-05-31 03:46:35 +00:00
to whoever at 4j made this code not adhere to any C standard: why
This commit is contained in:
@@ -30,7 +30,7 @@ ContainerSetContentPacket::ContainerSetContentPacket(int containerId, vector<sha
|
||||
|
||||
void ContainerSetContentPacket::read(DataInputStream *dis) //throws IOException
|
||||
{
|
||||
containerId = dis->readByte();
|
||||
containerId = (int)dis->readByte();
|
||||
int count = dis->readShort();
|
||||
items = ItemInstanceArray(count);
|
||||
for (int i = 0; i < count; i++)
|
||||
@@ -41,7 +41,7 @@ void ContainerSetContentPacket::read(DataInputStream *dis) //throws IOException
|
||||
|
||||
void ContainerSetContentPacket::write(DataOutputStream *dos) //throws IOException
|
||||
{
|
||||
dos->writeByte(containerId);
|
||||
dos->writeByte((std::byte)containerId);
|
||||
dos->writeShort(items.length);
|
||||
for (unsigned int i = 0; i < items.length; i++)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user