mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-10-20 07:39:42 +00:00
BlockFactory: change property cache arrays to use regular arrays instead of SplFixedArray
this does come at a performance cost, but is necessary for metadata expansion. we finally concede that this is not going to happen without BC breaks, however small they might be ...
This commit is contained in:
@@ -129,7 +129,7 @@ class Explosion{
|
||||
|
||||
$state = $this->subChunkExplorer->currentSubChunk->getFullBlock($vBlockX & SubChunk::COORD_MASK, $vBlockY & SubChunk::COORD_MASK, $vBlockZ & SubChunk::COORD_MASK);
|
||||
|
||||
$blastResistance = $blockFactory->blastResistance[$state];
|
||||
$blastResistance = $blockFactory->blastResistance[$state] ?? 0;
|
||||
if($blastResistance >= 0){
|
||||
$blastForce -= ($blastResistance / 5 + 0.3) * $this->stepLen;
|
||||
if($blastForce > 0){
|
||||
|
Reference in New Issue
Block a user