mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-09 19:49:35 +01:00
f8db65033c
By: md_5 <git@md-5.net>
16 lines
810 B
Diff
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) {
|