Skip to content

Commit

Permalink
2月29日上线:修复在脚底放方块的hack
Browse files Browse the repository at this point in the history
  • Loading branch information
boybook committed Feb 28, 2024
1 parent 157ccd6 commit 29a08db
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/cn/nukkit/level/Level.java
Original file line number Diff line number Diff line change
Expand Up @@ -2894,7 +2894,7 @@ public Item useItemOn(Vector3 vector, Item item, BlockFace face, float fx, float
bb.expand(-0.01, -0.01, -0.01);
if (hand.getBoundingBox().intersectsWith(bb)) {
// This is a hack to prevent the player from placing blocks inside themselves
return Item.get(10000);
return new Item(10000);
}
}
}
Expand Down

0 comments on commit 29a08db

Please sign in to comment.