Skip to content

Commit

Permalink
Update items to 1.19.10 (#3151)
Browse files Browse the repository at this point in the history

Co-authored-by: Camotoy <20743703+Camotoy@users.noreply.github.com>
  • Loading branch information
sctigercat1 and Camotoy committed Jul 20, 2022
1 parent 3de2b33 commit 4672860
Show file tree
Hide file tree
Showing 5 changed files with 9,976 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
import com.nukkitx.protocol.bedrock.data.inventory.ItemData;
import com.nukkitx.protocol.bedrock.packet.StartGamePacket;
import com.nukkitx.protocol.bedrock.v527.Bedrock_v527;
import com.nukkitx.protocol.bedrock.v534.Bedrock_v534;
import it.unimi.dsi.fastutil.ints.Int2IntMap;
import it.unimi.dsi.fastutil.ints.IntArrayList;
import it.unimi.dsi.fastutil.ints.IntList;
Expand Down Expand Up @@ -64,7 +65,9 @@ private record PaletteVersion(int protocolVersion, Map<String, String> additiona

public static void populate() {
Map<String, PaletteVersion> paletteVersions = new Object2ObjectOpenHashMap<>();
paletteVersions.put("1_19_0", new PaletteVersion(Bedrock_v527.V527_CODEC.getProtocolVersion(), Collections.emptyMap()));
paletteVersions.put("1_19_0", new PaletteVersion(Bedrock_v527.V527_CODEC.getProtocolVersion(),
Collections.singletonMap("minecraft:trader_llama_spawn_egg", "minecraft:llama_spawn_egg")));
paletteVersions.put("1_19_10", new PaletteVersion(Bedrock_v534.V534_CODEC.getProtocolVersion(), Collections.emptyMap()));

GeyserBootstrap bootstrap = GeyserImpl.getInstance().getBootstrap();

Expand Down Expand Up @@ -210,8 +213,7 @@ public static void populate() {

Set<String> javaOnlyItems = new ObjectOpenHashSet<>();
Collections.addAll(javaOnlyItems, "minecraft:spectral_arrow", "minecraft:debug_stick",
"minecraft:knowledge_book", "minecraft:tipped_arrow", "minecraft:trader_llama_spawn_egg",
"minecraft:bundle");
"minecraft:knowledge_book", "minecraft:tipped_arrow", "minecraft:bundle");
if (!usingFurnaceMinecart) {
javaOnlyItems.add("minecraft:furnace_minecart");
}
Expand Down

0 comments on commit 4672860

Please sign in to comment.