removed 2 useless handlers from Player(they were not sending any data to player), fixed bug 158

This commit is contained in:
GameHerobrine 2023-01-31 18:37:32 +03:00
parent a66176b75d
commit ad17a6880a
6 changed files with 10 additions and 17 deletions

View file

@ -288,7 +288,7 @@ class Level{
return false;
}
$ret = $this->level->setBlock($pos->x, $pos->y, $pos->z, $block->getID(), $block->getMetadata());
if($ret === true){
if($ret === true){
if(!($pos instanceof Position)){
$pos = new Position($pos->x, $pos->y, $pos->z, $this);
}