Skip to content

Commit 41c2242

Browse files
committed
this actually fixes #67
1 parent eae2da0 commit 41c2242

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

common/src/main/java/com/periut/chisel/gui/ChiselScreenHandler.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ public void onClosed(PlayerEntity player) {
156156
}
157157

158158
// Only modify inventory if we found a chisel
159-
if (chiselSlot != -1 && !chiselStack.isEmpty()) {
159+
if (chiselSlot != -1 && !chiselStack.isEmpty() && chiselStack.getCount() > 0) {
160160
player.getInventory().removeStack(chiselSlot);
161161
player.getInventory().setStack(0, chiselStack);
162162
}

0 commit comments

Comments
 (0)