mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-04-22 16:51:42 +00:00
Make Fire check more efficent - by @Tschrock
This commit is contained in:
parent
2066e92f84
commit
e5337d8949
@ -25,7 +25,6 @@
|
||||
namespace pocketmine\level;
|
||||
|
||||
use pocketmine\block\Air;
|
||||
use pocketmine\block\Fire;
|
||||
use pocketmine\block\Block;
|
||||
use pocketmine\entity\DroppedItem;
|
||||
use pocketmine\entity\Entity;
|
||||
@ -813,7 +812,7 @@ class Level implements ChunkManager, Metadatable{
|
||||
if($level instanceof Level) {
|
||||
$above = $level->getBlock(new Vector3($target->x, $target->y + 1, $target->z));
|
||||
if($above instanceof Block) {
|
||||
if($above->getID() === new Fire()) {
|
||||
if($above->getID() === Item::FIRE) {
|
||||
$level->setBlock($above, new Air(), true, false, true);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user