mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-07 10:22:56 +00:00
Rename BlockWriteBatch -> BlockTransaction
This commit is contained in:
@ -25,7 +25,7 @@ namespace pocketmine\block;
|
||||
|
||||
use pocketmine\block\utils\BlockDataValidator;
|
||||
use pocketmine\item\Item;
|
||||
use pocketmine\level\BlockWriteBatch;
|
||||
use pocketmine\level\BlockTransaction;
|
||||
use pocketmine\level\sound\DoorSound;
|
||||
use pocketmine\math\AxisAlignedBB;
|
||||
use pocketmine\math\Bearing;
|
||||
@ -125,10 +125,10 @@ abstract class Door extends Transparent{
|
||||
$topHalf = clone $this;
|
||||
$topHalf->top = true;
|
||||
|
||||
$write = new BlockWriteBatch();
|
||||
$write->addBlock($blockReplace, $this)->addBlock($blockUp, $topHalf);
|
||||
$transaction = new BlockTransaction();
|
||||
$transaction->addBlock($blockReplace, $this)->addBlock($blockUp, $topHalf);
|
||||
|
||||
return $write->apply($this->level);
|
||||
return $transaction->apply($this->level);
|
||||
}
|
||||
|
||||
return false;
|
||||
|
@ -24,7 +24,7 @@ declare(strict_types=1);
|
||||
namespace pocketmine\block;
|
||||
|
||||
use pocketmine\item\Item;
|
||||
use pocketmine\level\BlockWriteBatch;
|
||||
use pocketmine\level\BlockTransaction;
|
||||
use pocketmine\math\Facing;
|
||||
use pocketmine\math\Vector3;
|
||||
use pocketmine\Player;
|
||||
@ -53,9 +53,9 @@ class DoublePlant extends Flowable{
|
||||
$top = clone $this;
|
||||
$top->top = true;
|
||||
|
||||
$write = new BlockWriteBatch();
|
||||
$write->addBlock($blockReplace, $this)->addBlock($blockReplace->getSide(Facing::UP), $top);
|
||||
return $write->apply($this->level);
|
||||
$transaction = new BlockTransaction();
|
||||
$transaction->addBlock($blockReplace, $this)->addBlock($blockReplace->getSide(Facing::UP), $top);
|
||||
return $transaction->apply($this->level);
|
||||
}
|
||||
|
||||
return false;
|
||||
|
Reference in New Issue
Block a user