Update to Minecraft 1.21.2

By: md_5 <git@md-5.net>
This commit is contained in:
CraftBukkit/Spigot
2024-10-23 02:15:00 +11:00
parent 2c4beb962b
commit d3a23f42c3
522 changed files with 8501 additions and 6477 deletions

View File

@@ -342,7 +342,7 @@ public final class CraftLegacy {
}
String name = blockTag.get("Name").asString("");
Block block = BuiltInRegistries.BLOCK.get(MinecraftKey.parse(name));
Block block = BuiltInRegistries.BLOCK.getValue(MinecraftKey.parse(name));
if (block == null) {
continue;
}
@@ -416,7 +416,7 @@ public final class CraftLegacy {
}
// Preconditions.checkState(newId.contains("minecraft:"), "Unknown new material for " + matData);
Item newMaterial = BuiltInRegistries.ITEM.get(MinecraftKey.parse(newId));
Item newMaterial = BuiltInRegistries.ITEM.getValue(MinecraftKey.parse(newId));
if (newMaterial == Items.AIR) {
continue;

View File

@@ -175,6 +175,8 @@ public class FieldRename {
.change("SNOWMAN", "SNOW_GOLEM")
.change("FISHING_HOOK", "FISHING_BOBBER")
.change("LIGHTNING", "LIGHTNING_BOLT")
.change("BOAT", "OAK_BOAT")
.change("CHEST_BOAT", "OAK_CHEST_BOAT")
.withKeyRename()
.change("XP_ORB", "EXPERIENCE_ORB")
.change("EYE_OF_ENDER_SIGNAL", "EYE_OF_ENDER")