mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-07-01 07:39:57 +00:00
World: remove dead code
This commit is contained in:
parent
8e17aed4f4
commit
41c5f63565
@ -973,11 +973,6 @@ class World implements ChunkManager{
|
|||||||
}
|
}
|
||||||
|
|
||||||
$block = $this->getBlockAt($x, $y, $z);
|
$block = $this->getBlockAt($x, $y, $z);
|
||||||
$replacement = $block->readStateFromWorld(); //for blocks like fences, force recalculation of connected AABBs
|
|
||||||
if($replacement !== $block){
|
|
||||||
$replacement->position($this, $x, $y, $z);
|
|
||||||
$block = $replacement;
|
|
||||||
}
|
|
||||||
|
|
||||||
if(BlockUpdateEvent::hasHandlers()){
|
if(BlockUpdateEvent::hasHandlers()){
|
||||||
$ev = new BlockUpdateEvent($block);
|
$ev = new BlockUpdateEvent($block);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user