Skip to content

Commit b037141

Browse files
authored
Fixed Item In Wall Bug (#2662)
Fixes the bug that items get stuck in wall I don't know if there is an Issue for that (couldnt find one) fixes #1455
1 parent 97935c3 commit b037141

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/itemdrop.zig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -364,7 +364,7 @@ pub const ItemDropManager = struct { // MARK: ItemDropManager
364364
if (move < 0) {
365365
pos.*[i] = box.max[i] + radius;
366366
} else {
367-
pos.*[i] = box.max[i] - radius;
367+
pos.*[i] = box.min[i] - radius;
368368
}
369369
vel.*[i] = 0;
370370
} else {

0 commit comments

Comments
 (0)