--- a/net/minecraft/commands/arguments/blocks/ArgumentBlock.java +++ b/net/minecraft/commands/arguments/blocks/ArgumentBlock.java @@ -65,7 +65,7 @@ private final StringReader reader; private final boolean forTesting; private final boolean allowNbt; - private final Map, Comparable> properties = Maps.newHashMap(); + private final Map, Comparable> properties = Maps.newLinkedHashMap(); // CraftBukkit - stable private final Map vagueProperties = Maps.newHashMap(); private MinecraftKey id = MinecraftKey.withDefaultNamespace(""); @Nullable @@ -516,7 +516,7 @@ Optional optional = iblockstate.getValue(s); if (optional.isPresent()) { - this.state = (IBlockData) this.state.setValue(iblockstate, (Comparable) optional.get()); + this.state = (IBlockData) this.state.setValue(iblockstate, (T) optional.get()); // CraftBukkit - decompile error this.properties.put(iblockstate, (Comparable) optional.get()); } else { this.reader.setCursor(i); @@ -551,7 +551,7 @@ private static > void appendProperty(StringBuilder stringbuilder, IBlockState iblockstate, Comparable comparable) { stringbuilder.append(iblockstate.getName()); stringbuilder.append('='); - stringbuilder.append(iblockstate.getName(comparable)); + stringbuilder.append(iblockstate.getName((T) comparable)); // CraftBukkit - decompile error } public static record a(IBlockData blockState, Map, Comparable> properties, @Nullable NBTTagCompound nbt) {