PaperMC/paper-server/nms-patches/net/minecraft/world/item/ItemDebugStick.patch
CraftBukkit/Spigot f8db65033c Update to Minecraft 1.19.1
By: md_5 <git@md-5.net>
2022-07-28 04:00:00 +10:00

16 lines
810 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;
@@ -95,7 +96,7 @@
}
private static <T extends Comparable<T>> IBlockData cycleState(IBlockData iblockdata, IBlockState<T> iblockstate, boolean flag) {
- return (IBlockData) iblockdata.setValue(iblockstate, (Comparable) getRelative(iblockstate.getPossibleValues(), iblockdata.getValue(iblockstate), flag));
+ return (IBlockData) iblockdata.setValue(iblockstate, getRelative(iblockstate.getPossibleValues(), iblockdata.getValue(iblockstate), flag)); // CraftBukkit - decompile error
}
private static <T> T getRelative(Iterable<T> iterable, @Nullable T t0, boolean flag) {