summaryrefslogtreecommitdiff
path: root/serverlist-server
diff options
context:
space:
mode:
authorMattie <pugmatt@gmail.com>2025-02-12 11:56:52 -0500
committerMattie <pugmatt@gmail.com>2025-02-12 11:56:52 -0500
commit7aa424b07974b8d949deebf441d81b48349ca653 (patch)
tree8508663bad6655a0c2e108fb52542723910293e7 /serverlist-server
parent9766a50adc6a86f79c554583f0e0fde59e6cb72f (diff)
downloadBedrockConnect-7aa424b07974b8d949deebf441d81b48349ca653.tar.gz
BedrockConnect-7aa424b07974b8d949deebf441d81b48349ca653.tar.bz2
BedrockConnect-7aa424b07974b8d949deebf441d81b48349ca653.zip
Finish 1.21.60 support
Diffstat (limited to 'serverlist-server')
-rw-r--r--serverlist-server/src/main/com/pyratron/pugmatt/bedrockconnect/BCPlayer.java16
1 files changed, 3 insertions, 13 deletions
diff --git a/serverlist-server/src/main/com/pyratron/pugmatt/bedrockconnect/BCPlayer.java b/serverlist-server/src/main/com/pyratron/pugmatt/bedrockconnect/BCPlayer.java
index 007c833..3fd54e4 100644
--- a/serverlist-server/src/main/com/pyratron/pugmatt/bedrockconnect/BCPlayer.java
+++ b/serverlist-server/src/main/com/pyratron/pugmatt/bedrockconnect/BCPlayer.java
@@ -297,20 +297,10 @@ public class BCPlayer {
session.sendPacket(startGamePacket);
- // Previously was able to send empty ItemData array to fulfill this; Game client crashes now
- // though if contents/groups are empty. Also tried setting it to lists that have single phony entries...
- // Example:
- // creativeItemData.add(new CreativeItemData(ItemData.AIR, 0, 0);
- // creativeItemGroupData.add(new CreativeItemGroup(CreativeItemCategory.ALL, "", ItemData.AIR));
- //
- // ... but no dice (Either crashes client or client shows a 'Server returned broken packet' error)
- // , unless I'm missing something
- //
- // Unless I'm missing something, I'm assuming this version requires the actual parsed creative_items.json
- // to be passed-in, will need to figure out parsing the file with the new format.
+ ItemComponentPacket componentPacket = new ItemComponentPacket();
+ session.sendPacket(componentPacket);
+
CreativeContentPacket creativeContentPacket = new CreativeContentPacket();
- creativeContentPacket.getContents().addAll(BedrockConnect.paletteManager.CREATIVE_ITEM_DATA);
- creativeContentPacket.getGroups().addAll(BedrockConnect.paletteManager.CREATIVE_ITEM_GROUPS);
session.sendPacket(creativeContentPacket);
spawn();