13
0
geforkt von Mirrors/Paper
Paper/paper-server/nms-patches/net/minecraft/world/item/ItemDebugStick.patch
CraftBukkit/Spigot 97cd7810a3 Add mc-dev imports
By: md_5 <git@md-5.net>
2021-04-07 15:03:29 +10:00

17 Zeilen
755 B
Diff

--- a/net/minecraft/world/item/ItemDebugStick.java
+++ b/net/minecraft/world/item/ItemDebugStick.java
@@ -1,3 +1,4 @@
+// mc-dev import
package net.minecraft.world.item;
import java.util.Collection;
@@ -91,7 +92,7 @@
}
private static <T extends Comparable<T>> IBlockData a(IBlockData iblockdata, IBlockState<T> iblockstate, boolean flag) {
- return (IBlockData) iblockdata.set(iblockstate, (Comparable) a((Iterable) iblockstate.getValues(), (Object) iblockdata.get(iblockstate), flag));
+ return (IBlockData) iblockdata.set(iblockstate, a(iblockstate.getValues(), iblockdata.get(iblockstate), flag)); // CraftBukkit - decompile error
}
private static <T> T a(Iterable<T> iterable, @Nullable T t0, boolean flag) {