mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-07-05 01:29:55 +00:00
Revert "Update Level.php"
This reverts commit da9dfabae40cb731e90e2f41e41543160b67c4d5.
This commit is contained in:
parent
b6506d1db8
commit
c3424beda9
@ -25,6 +25,7 @@
|
|||||||
namespace pocketmine\level;
|
namespace pocketmine\level;
|
||||||
|
|
||||||
use pocketmine\block\Air;
|
use pocketmine\block\Air;
|
||||||
|
use pocketmine\block\Fire;
|
||||||
use pocketmine\block\Block;
|
use pocketmine\block\Block;
|
||||||
use pocketmine\entity\DroppedItem;
|
use pocketmine\entity\DroppedItem;
|
||||||
use pocketmine\entity\Entity;
|
use pocketmine\entity\Entity;
|
||||||
@ -812,7 +813,7 @@ class Level implements ChunkManager, Metadatable{
|
|||||||
if($level instanceof Level) {
|
if($level instanceof Level) {
|
||||||
$above = $level->getBlock(new Vector3($target->x, $target->y + 1, $target->z));
|
$above = $level->getBlock(new Vector3($target->x, $target->y + 1, $target->z));
|
||||||
if($above instanceof Block) {
|
if($above instanceof Block) {
|
||||||
if($above->getID() === Item::Fire) {
|
if($above->getID() === new Fire()) {
|
||||||
$level->setBlock($above, new Air(), true, false, true);
|
$level->setBlock($above, new Air(), true, false, true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user