mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-23 08:46:44 +01:00
17 lines
808 B
Diff
17 lines
808 B
Diff
|
--- a/net/minecraft/world/item/DebugStickItem.java
|
||
|
+++ b/net/minecraft/world/item/DebugStickItem.java
|
||
|
@@ -1,3 +1,4 @@
|
||
|
+// mc-dev import
|
||
|
package net.minecraft.world.item;
|
||
|
|
||
|
import java.util.Collection;
|
||
|
@@ -92,7 +93,7 @@
|
||
|
}
|
||
|
|
||
|
private static <T extends Comparable<T>> BlockState cycleState(BlockState state, Property<T> property, boolean inverse) {
|
||
|
- return (BlockState) state.setValue(property, (Comparable) DebugStickItem.getRelative(property.getPossibleValues(), state.getValue(property), inverse));
|
||
|
+ return (BlockState) state.setValue(property, DebugStickItem.getRelative(property.getPossibleValues(), state.getValue(property), inverse)); // CraftBukkit - decompile error
|
||
|
}
|
||
|
|
||
|
private static <T> T getRelative(Iterable<T> elements, @Nullable T current, boolean inverse) {
|