diff --git a/gradle.properties b/gradle.properties index fa0c76d..8410afe 100644 --- a/gradle.properties +++ b/gradle.properties @@ -35,7 +35,7 @@ mod_name=WhisperGrove # The license of the mod. Review your options at https://choosealicense.com/. All Rights Reserved is the default. mod_license=MIT # The mod version. See https://semver.org/ -mod_version=1.0.0-Snapshot+129 +mod_version=1.0.0-rc # The group ID for the mod. It is only important when publishing as an artifact to a Maven repository. # This should match the base package used for the mod sources. # See https://maven.apache.org/guides/mini/guide-naming-conventions.html diff --git a/src/main/java/org/hiedacamellia/whispergrove/content/client/menu/SpringingMenu.java b/src/main/java/org/hiedacamellia/whispergrove/content/client/menu/SpringingMenu.java index 7b53618..70acb43 100644 --- a/src/main/java/org/hiedacamellia/whispergrove/content/client/menu/SpringingMenu.java +++ b/src/main/java/org/hiedacamellia/whispergrove/content/client/menu/SpringingMenu.java @@ -65,7 +65,12 @@ public SpringingMenu(int containerId, Inventory inventory, ContainerLevelAccess this.pos = pos; for (int ni = 0 ; ni < 3; ++ni) { for (int nj = 0; nj < 3; ++nj) { - this.customSlots.put(ni * 3 + nj, this.addSlot(new SlotItemHandler(itemHandler, ni * 3 + nj, 97 + nj * 18, 24 + ni * 18))); + this.customSlots.put(ni * 3 + nj, this.addSlot(new SlotItemHandler(itemHandler, ni * 3 + nj, 97 + nj * 18, 24 + ni * 18){ + @Override + public boolean mayPickup(Player playerIn) {return containerData.get(1) == 0;} + @Override + public boolean mayPlace(ItemStack stack) {return containerData.get(1) == 0;} + })); } } diff --git a/src/main/java/org/hiedacamellia/whispergrove/content/client/screen/SpringingScreen.java b/src/main/java/org/hiedacamellia/whispergrove/content/client/screen/SpringingScreen.java index 8e4d1b8..6cf59c5 100644 --- a/src/main/java/org/hiedacamellia/whispergrove/content/client/screen/SpringingScreen.java +++ b/src/main/java/org/hiedacamellia/whispergrove/content/client/screen/SpringingScreen.java @@ -58,7 +58,7 @@ public void init() { containerData.set(1, 400); }); - name = new EditBox(font, leftPos + 157, topPos + 23, 55, 14, Component.nullToEmpty("Name")); + name = new EditBox(font, leftPos + 157, topPos + 23, 56, 15, Component.nullToEmpty("Name")); this.addRenderableWidget(confirm); this.addRenderableWidget(name);