Merge pull request #111 from Goodbird-git/screen-size

Implemented the ability to get the screen size from server
This commit is contained in:
Kam authored and GitHub committed 2024-01-18 15:06:44 -05:00
commit f3e162dafe
6 files changed
+67 -1

No files matched your search

@@ -305,5 +305,9 @@ public class PacketHandlerPlayer{
tile.book.func_150996_a(Items.written_book);
}
}
else if(type == EnumPlayerPacket.ScreenSize){
int width = buffer.readInt(), height = buffer.readInt();
PlayerDataController.Instance.getPlayerData(player).screenSize.setSize(width,height);
}
}
}