mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-26 18:03:51 -07:00
@@ -9,26 +9,24 @@
|
||||
private final Map<String, String> l = Maps.newHashMap();
|
||||
private MinecraftKey m = new MinecraftKey("");
|
||||
private BlockStateList<Block, IBlockData> n;
|
||||
@@ -222,7 +222,7 @@
|
||||
if (comparable instanceof Integer) {
|
||||
suggestionsbuilder.suggest((Integer) comparable);
|
||||
} else {
|
||||
- suggestionsbuilder.suggest(iblockstate.a(comparable));
|
||||
+ suggestionsbuilder.suggest(iblockstate.a((T) comparable)); // CraftBukkit - decompile error
|
||||
}
|
||||
}
|
||||
@@ -217,7 +217,7 @@
|
||||
Iterator iterator = iblockstate.d().iterator();
|
||||
|
||||
@@ -488,8 +488,8 @@
|
||||
Optional optional = iblockstate.b(s);
|
||||
while (iterator.hasNext()) {
|
||||
- T t0 = (Comparable) iterator.next();
|
||||
+ T t0 = (T) iterator.next(); // CraftBukkit - decompile error
|
||||
|
||||
if (t0 instanceof Integer) {
|
||||
suggestionsbuilder.suggest((Integer) t0);
|
||||
@@ -488,7 +488,7 @@
|
||||
Optional<T> optional = iblockstate.b(s);
|
||||
|
||||
if (optional.isPresent()) {
|
||||
- this.o = (IBlockData) this.o.set(iblockstate, (Comparable) optional.get());
|
||||
- this.k.put(iblockstate, optional.get());
|
||||
+ this.o = (IBlockData) this.o.set(iblockstate, (T) optional.get()); // CraftBukkit - decompile error
|
||||
+ this.k.put(iblockstate, (Comparable) optional.get()); // CraftBukkit - decompile error
|
||||
this.k.put(iblockstate, optional.get());
|
||||
} else {
|
||||
this.i.setCursor(i);
|
||||
throw ArgumentBlock.e.createWithContext(this.i, this.m.toString(), iblockstate.a(), s);
|
||||
@@ -526,7 +526,7 @@
|
||||
private static <T extends Comparable<T>> void a(StringBuilder stringbuilder, IBlockState<T> iblockstate, Comparable<?> comparable) {
|
||||
stringbuilder.append(iblockstate.a());
|
||||
|
Reference in New Issue
Block a user