diff options
| author | shedaniel <daniel@shedaniel.me> | 2020-07-01 14:24:22 +0800 |
|---|---|---|
| committer | shedaniel <daniel@shedaniel.me> | 2020-07-01 14:24:22 +0800 |
| commit | 46a119cac30a87844c96533b1a9c16ab921ce1da (patch) | |
| tree | 9626a4cdfe61f6a6eab093f964720d5f0ade4ecf /src/main/java/me/shedaniel/rei/gui/ContainerScreenOverlay.java | |
| parent | 07432ff14185f98b79ee66d820ab758432c37177 (diff) | |
| download | RoughlyEnoughItems-46a119cac30a87844c96533b1a9c16ab921ce1da.tar.gz RoughlyEnoughItems-46a119cac30a87844c96533b1a9c16ab921ce1da.tar.bz2 RoughlyEnoughItems-46a119cac30a87844c96533b1a9c16ab921ce1da.zip | |
New Cheating Style: Grab
Signed-off-by: shedaniel <daniel@shedaniel.me>
Diffstat (limited to 'src/main/java/me/shedaniel/rei/gui/ContainerScreenOverlay.java')
| -rw-r--r-- | src/main/java/me/shedaniel/rei/gui/ContainerScreenOverlay.java | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/main/java/me/shedaniel/rei/gui/ContainerScreenOverlay.java b/src/main/java/me/shedaniel/rei/gui/ContainerScreenOverlay.java index 95532cbbd..6ab41d865 100644 --- a/src/main/java/me/shedaniel/rei/gui/ContainerScreenOverlay.java +++ b/src/main/java/me/shedaniel/rei/gui/ContainerScreenOverlay.java @@ -250,9 +250,11 @@ public class ContainerScreenOverlay extends WidgetWithBounds { tooltips += "\n "; if (!ClientHelper.getInstance().isCheating()) tooltips += "\n" + I18n.translate("text.rei.cheating_disabled"); - else if (!RoughlyEnoughItemsCore.hasOperatorPermission()) - tooltips += "\n" + I18n.translate("text.rei.cheating_enabled_no_perms"); - else if (RoughlyEnoughItemsCore.hasPermissionToUsePackets()) + else if (!RoughlyEnoughItemsCore.hasOperatorPermission()) { + if (minecraft.interactionManager.hasCreativeInventory()) + tooltips += "\n" + I18n.translate("text.rei.cheating_limited_creative_enabled"); + else tooltips += "\n" + I18n.translate("text.rei.cheating_enabled_no_perms"); + } else if (RoughlyEnoughItemsCore.hasPermissionToUsePackets()) tooltips += "\n" + I18n.translate("text.rei.cheating_enabled"); else tooltips += "\n" + I18n.translate("text.rei.cheating_limited_enabled"); |
