Fix block placement collision on chunk border

This commit is contained in:
themode 2021-01-13 06:32:42 +01:00
parent d5da334c25
commit 7d8ce32ba9
1 changed files with 2 additions and 2 deletions

View File

@ -104,8 +104,8 @@ public class BlockPlacementListener {
final Block block = useMaterial.getBlock();
final Set<Entity> entities = instance.getChunkEntities(chunk);
// Check if the player is trying to place a block in an entity
boolean intersect = false;
if (block.isSolid()) {
boolean intersect = player.getBoundingBox().intersect(blockPosition);
if (!intersect && block.isSolid()) {
for (Entity entity : entities) {
intersect = entity.getBoundingBox().intersect(blockPosition);
if (intersect)