mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-22 12:39:43 +00:00
e
This commit is contained in:
parent
92e56c6049
commit
cef28d2c38
1 changed files with 1 additions and 1 deletions
|
|
@ -510,7 +510,7 @@ class Level{
|
||||||
if(!isset($this->level) or (($pos instanceof Position) and $pos->level !== $this) or $pos->y < 0){
|
if(!isset($this->level) or (($pos instanceof Position) and $pos->level !== $this) or $pos->y < 0){
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
$ret = $this->level->setBlock((int)$pos->x, (int)$pos->y, (int)$pos->z, $block->getID(), $block->getMetadata());
|
$ret = $this->level->setBlock($pos->x, $pos->y, $pos->z, $block->getID(), $block->getMetadata());
|
||||||
if($ret === true){
|
if($ret === true){
|
||||||
if(!($pos instanceof Position)){
|
if(!($pos instanceof Position)){
|
||||||
$pos = new Position($pos->x, $pos->y, $pos->z, $this);
|
$pos = new Position($pos->x, $pos->y, $pos->z, $this);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue