Removed unnecessary block update

This commit is contained in:
Alexander Anishin committed 2023-06-09 22:46:41 +03:00
1 parent 4d6cb55209
commit 20ccdda09e
2 files changed
-2

No files matched your search

@@ -149,7 +149,6 @@ public class PlayerDetector extends BlockDE implements ITileEntityProvider {
@Override
public void breakBlock(World world, int x, int y, int z, Block blockBroken, int metadata) {
super.breakBlock(world, x, y, z, blockBroken, metadata);
world.notifyBlocksOfNeighborChange(x, y, z, blockBroken);
for (ForgeDirection direction : ForgeDirection.VALID_DIRECTIONS) {
world.notifyBlocksOfNeighborChange(
x + direction.offsetX,
@@ -167,7 +167,6 @@ public class PlayerDetectorAdvanced extends BlockCustomDrop {
@Override
public void breakBlock(World world, int x, int y, int z, Block blockBroken, int metadata) {
super.breakBlock(world, x, y, z, blockBroken, metadata);
world.notifyBlocksOfNeighborChange(x, y, z, blockBroken);
for (ForgeDirection direction : ForgeDirection.VALID_DIRECTIONS) {
world.notifyBlocksOfNeighborChange(
x + direction.offsetX,