diff options
| author | shedaniel <daniel@shedaniel.me> | 2021-06-01 02:28:36 +0800 |
|---|---|---|
| committer | shedaniel <daniel@shedaniel.me> | 2021-06-01 02:28:36 +0800 |
| commit | 645c54d0611b8f44a6851b06c2cc74c78d824331 (patch) | |
| tree | 62cd0827f255954b54c125040b090d81b42445e1 /runtime/src/main/java/me/shedaniel | |
| parent | 82e9655e3786f58c32e2b6584732bb40f9508c1c (diff) | |
| download | RoughlyEnoughItems-645c54d0611b8f44a6851b06c2cc74c78d824331.tar.gz RoughlyEnoughItems-645c54d0611b8f44a6851b06c2cc74c78d824331.tar.bz2 RoughlyEnoughItems-645c54d0611b8f44a6851b06c2cc74c78d824331.zip | |
cast().getValue() -> castValue()
Diffstat (limited to 'runtime/src/main/java/me/shedaniel')
| -rw-r--r-- | runtime/src/main/java/me/shedaniel/rei/impl/client/gui/widget/EntryListEntryWidget.java | 2 | ||||
| -rw-r--r-- | runtime/src/main/java/me/shedaniel/rei/plugin/client/DefaultClientRuntimePlugin.java | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/runtime/src/main/java/me/shedaniel/rei/impl/client/gui/widget/EntryListEntryWidget.java b/runtime/src/main/java/me/shedaniel/rei/impl/client/gui/widget/EntryListEntryWidget.java index c44622f1a..143d93662 100644 --- a/runtime/src/main/java/me/shedaniel/rei/impl/client/gui/widget/EntryListEntryWidget.java +++ b/runtime/src/main/java/me/shedaniel/rei/impl/client/gui/widget/EntryListEntryWidget.java @@ -85,7 +85,7 @@ public abstract class EntryListEntryWidget extends EntryWidget { } } if (entry.getValueType() == ItemStack.class) - entry.<ItemStack>cast().getValue().setCount(button != 1 && !Screen.hasShiftDown() ? 1 : ((ItemStack) entry.getValue()).getMaxStackSize()); + entry.<ItemStack>castValue().setCount(button != 1 && !Screen.hasShiftDown() ? 1 : entry.<ItemStack>castValue().getMaxStackSize()); return ClientHelper.getInstance().tryCheatingEntry(entry); } diff --git a/runtime/src/main/java/me/shedaniel/rei/plugin/client/DefaultClientRuntimePlugin.java b/runtime/src/main/java/me/shedaniel/rei/plugin/client/DefaultClientRuntimePlugin.java index b645040a1..ee03470e0 100644 --- a/runtime/src/main/java/me/shedaniel/rei/plugin/client/DefaultClientRuntimePlugin.java +++ b/runtime/src/main/java/me/shedaniel/rei/plugin/client/DefaultClientRuntimePlugin.java @@ -231,7 +231,7 @@ public class DefaultClientRuntimePlugin implements REIClientPlugin { } } if (entry.getType() == VanillaEntryTypes.ITEM) - entry.<ItemStack>cast().getValue().setCount(button != 1 && !Screen.hasShiftDown() ? 1 : ((ItemStack) entry.getValue()).getMaxStackSize()); + entry.<ItemStack>castValue().setCount(button != 1 && !Screen.hasShiftDown() ? 1 : entry.<ItemStack>castValue().getMaxStackSize()); return ClientHelper.getInstance().tryCheatingEntry(entry); } |
