Skip to content
This repository has been archived by the owner on Dec 15, 2024. It is now read-only.

Commit

Permalink
remove nbt locking config option since it's not used anymore
Browse files Browse the repository at this point in the history
also fix testmod lmao
  • Loading branch information
BasiqueEvangelist committed Jul 13, 2024
1 parent fc47061 commit 0858ccb
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ public class GadgetConfigModel {
@PredicateConstraint("isMappingsValid") @Hook public MappingsType mappings =
FabricLoader.getInstance().isDevelopmentEnvironment() ? MappingsType.LOCAL : MappingsType.YARN;
public UICounterMode uiCounterMode = UICounterMode.LOG_ON_LONG_UPDATE;
public boolean nbtLocking = false;
public boolean inspectClasses = true;
public boolean fullDecompilationContext = true;
@Hook public List<String> hiddenFields = new ArrayList<>(List.of(
Expand Down
2 changes: 0 additions & 2 deletions src/main/resources/assets/gadget/lang/en_us.json
Original file line number Diff line number Diff line change
Expand Up @@ -228,8 +228,6 @@
"text.config.gadget.enum.uICounterMode.off": "Off",
"text.config.gadget.enum.uICounterMode.log_on_long_update": "Log On Long Update",
"text.config.gadget.enum.uICounterMode.log_always": "Always Log",
"text.config.gadget.option.nbtLocking": "NBT Locking",
"text.config.gadget.option.nbtLocking.tooltip": "Lock item NBT tags during operations that should be read only",
"text.config.gadget.option.inspectClasses": "Inspect Classes",
"text.config.gadget.option.inspectClasses.tooltip": "Allows you to inspect game classes",
"text.config.gadget.option.fullDecompilationContext": "Full Decompilation Context",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ public FunnyItem() {
@Override
public Text getName(ItemStack stack) {
if (Screen.hasShiftDown()) {
stack.getOrCreateNbt().putString("owl", "yay");
// todo: fix this.
// stack.getOrCreateNbt().putString("owl", "yay");
}

return super.getName(stack);
Expand Down

0 comments on commit 0858ccb

Please sign in to comment.