Skip to content

Commit

Permalink
Ciallo~(∠・ω< )⌒★
Browse files Browse the repository at this point in the history
  • Loading branch information
Yuqi154 committed Oct 7, 2024
1 parent 0c10ba0 commit 54056d1
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;}
}));
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 54056d1

Please sign in to comment.