mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-22 12:39:43 +00:00
fixed crash(hopefully)
This commit is contained in:
parent
4fdf9f50e6
commit
0d70406cbe
1 changed files with 4 additions and 2 deletions
|
|
@ -28,7 +28,8 @@ class BucketItem extends Item{
|
||||||
if($block->getID() === AIR || ( $block instanceof WaterBlock && ($block->getMetadata() & 0x07) != 0x00 ) ){
|
if($block->getID() === AIR || ( $block instanceof WaterBlock && ($block->getMetadata() & 0x07) != 0x00 ) ){
|
||||||
$water = new WaterBlock();
|
$water = new WaterBlock();
|
||||||
$level->setBlock($block, $water, true, false, true);
|
$level->setBlock($block, $water, true, false, true);
|
||||||
$water->place($this, $player, $block, $target, $face, $fx, $fy, $fz);
|
ServerAPI::request()->api->block->scheduleBlockUpdate($block, 5, BLOCK_UPDATE_NORMAL);
|
||||||
|
//$water->place($this, $player, $block, $target, $face, $fx, $fy, $fz);
|
||||||
if(($player->gamemode & 0x01) === 0){
|
if(($player->gamemode & 0x01) === 0){
|
||||||
$this->meta = 0;
|
$this->meta = 0;
|
||||||
}
|
}
|
||||||
|
|
@ -38,7 +39,8 @@ class BucketItem extends Item{
|
||||||
if($block->getID() === AIR){
|
if($block->getID() === AIR){
|
||||||
$lava = new LavaBlock();
|
$lava = new LavaBlock();
|
||||||
$level->setBlock($block, $lava, true, false, true);
|
$level->setBlock($block, $lava, true, false, true);
|
||||||
$lava->place(clone $this, $player, $block, $target, $face, $fx, $fy, $fz);
|
ServerAPI::request()->api->block->scheduleBlockUpdate($block, 40, BLOCK_UPDATE_NORMAL);
|
||||||
|
//$lava->place(clone $this, $player, $block, $target, $face, $fx, $fy, $fz);
|
||||||
if(($player->gamemode & 0x01) === 0){
|
if(($player->gamemode & 0x01) === 0){
|
||||||
$this->meta = 0;
|
$this->meta = 0;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue