From 4a8b9a03eb69a64911d86ac9825df806f0efbe92 Mon Sep 17 00:00:00 2001 From: Joseph Burton Date: Thu, 2 May 2024 20:23:15 +0200 Subject: [PATCH] Fix can_place_on conversion and size check for item containers --- patches/server/Rewrite-dataconverter-system.patch | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/patches/server/Rewrite-dataconverter-system.patch b/patches/server/Rewrite-dataconverter-system.patch index 93c17fbeb9..f903f17872 100644 --- a/patches/server/Rewrite-dataconverter-system.patch +++ b/patches/server/Rewrite-dataconverter-system.patch @@ -6816,7 +6816,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000 + case "minecraft:crafter": { + final ListType items = tileEntity.getList("Items", ObjectType.MAP); + tileEntity.remove("Items"); -+ if (items != null && items.size() > 1) { ++ if (items != null && items.size() > 0) { + transientItem.componentSetList("minecraft:container", items); + + for (int i = 0, len = items.size(); i < len; ++i) { @@ -22678,7 +22678,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000 + walkBlockPredicates(canBreak, fromVersion, toVersion); + } + -+ final MapType canPlaceOn = root.getMap("minecraft:can_break"); ++ final MapType canPlaceOn = root.getMap("minecraft:can_place_on"); + if (canPlaceOn != null) { + final ListType predicates = canPlaceOn.getList("predicates", ObjectType.MAP); + if (predicates != null) {