Commits

md_5 authored a4c2ee70db5
Update to Minecraft 1.21
No tags

nms-patches/net/minecraft/commands/arguments/blocks/ArgumentBlock.patch

Modified
1 1 --- a/net/minecraft/commands/arguments/blocks/ArgumentBlock.java
2 2 +++ b/net/minecraft/commands/arguments/blocks/ArgumentBlock.java
3 3 @@ -67,7 +67,7 @@
4 4 private final StringReader reader;
5 5 private final boolean forTesting;
6 6 private final boolean allowNbt;
7 7 - private final Map<IBlockState<?>, Comparable<?>> properties = Maps.newHashMap();
8 8 + private final Map<IBlockState<?>, Comparable<?>> properties = Maps.newLinkedHashMap(); // CraftBukkit - stable
9 9 private final Map<String, String> vagueProperties = Maps.newHashMap();
10 - private MinecraftKey id = new MinecraftKey("");
10 + private MinecraftKey id = MinecraftKey.withDefaultNamespace("");
11 11 @Nullable
12 12 @@ -275,7 +275,7 @@
13 13 Iterator iterator = iblockstate.getPossibleValues().iterator();
14 14
15 15 while (iterator.hasNext()) {
16 16 - T t0 = (Comparable) iterator.next();
17 17 + T t0 = (T) iterator.next(); // CraftBukkit - decompile error
18 18
19 19 if (t0 instanceof Integer integer) {
20 20 suggestionsbuilder.suggest(integer);

Everything looks good. We'll let you know here if there's anything you should know about.

Add shortcut