We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent eae2da0 commit 41c2242Copy full SHA for 41c2242
common/src/main/java/com/periut/chisel/gui/ChiselScreenHandler.java
@@ -156,7 +156,7 @@ public void onClosed(PlayerEntity player) {
156
}
157
158
// Only modify inventory if we found a chisel
159
- if (chiselSlot != -1 && !chiselStack.isEmpty()) {
+ if (chiselSlot != -1 && !chiselStack.isEmpty() && chiselStack.getCount() > 0) {
160
player.getInventory().removeStack(chiselSlot);
161
player.getInventory().setStack(0, chiselStack);
162
0 commit comments