2021-03-16 09:00:00 +11:00
|
|
|
--- a/net/minecraft/commands/arguments/blocks/ArgumentBlock.java
|
|
|
|
+++ b/net/minecraft/commands/arguments/blocks/ArgumentBlock.java
|
2025-03-26 03:05:00 +11:00
|
|
|
@@ -65,7 +65,7 @@
|
2021-06-11 15:00:00 +10:00
|
|
|
private final StringReader reader;
|
|
|
|
private final boolean forTesting;
|
2022-06-08 02:00:00 +10:00
|
|
|
private final boolean allowNbt;
|
2021-06-11 15:00:00 +10:00
|
|
|
- private final Map<IBlockState<?>, Comparable<?>> properties = Maps.newHashMap();
|
|
|
|
+ private final Map<IBlockState<?>, Comparable<?>> properties = Maps.newLinkedHashMap(); // CraftBukkit - stable
|
|
|
|
private final Map<String, String> vagueProperties = Maps.newHashMap();
|
2024-06-14 01:05:00 +10:00
|
|
|
private MinecraftKey id = MinecraftKey.withDefaultNamespace("");
|
2022-06-08 02:00:00 +10:00
|
|
|
@Nullable
|
2025-03-26 03:05:00 +11:00
|
|
|
@@ -516,7 +516,7 @@
|
2021-11-22 09:00:00 +11:00
|
|
|
Optional<T> optional = iblockstate.getValue(s);
|
2018-12-16 18:21:29 -05:00
|
|
|
|
|
|
|
if (optional.isPresent()) {
|
2021-11-22 09:00:00 +11:00
|
|
|
- this.state = (IBlockData) this.state.setValue(iblockstate, (Comparable) optional.get());
|
|
|
|
+ this.state = (IBlockData) this.state.setValue(iblockstate, (T) optional.get()); // CraftBukkit - decompile error
|
2021-06-11 15:00:00 +10:00
|
|
|
this.properties.put(iblockstate, (Comparable) optional.get());
|
2018-12-16 18:21:29 -05:00
|
|
|
} else {
|
2021-06-11 15:00:00 +10:00
|
|
|
this.reader.setCursor(i);
|
2025-03-26 03:05:00 +11:00
|
|
|
@@ -551,7 +551,7 @@
|
2021-11-22 09:00:00 +11:00
|
|
|
private static <T extends Comparable<T>> void appendProperty(StringBuilder stringbuilder, IBlockState<T> iblockstate, Comparable<?> comparable) {
|
2020-06-25 10:00:00 +10:00
|
|
|
stringbuilder.append(iblockstate.getName());
|
2018-12-16 18:21:29 -05:00
|
|
|
stringbuilder.append('=');
|
2021-11-22 09:00:00 +11:00
|
|
|
- stringbuilder.append(iblockstate.getName(comparable));
|
|
|
|
+ stringbuilder.append(iblockstate.getName((T) comparable)); // CraftBukkit - decompile error
|
2018-12-16 18:21:29 -05:00
|
|
|
}
|
|
|
|
|
2022-06-08 02:00:00 +10:00
|
|
|
public static record a(IBlockData blockState, Map<IBlockState<?>, Comparable<?>> properties, @Nullable NBTTagCompound nbt) {
|