fixed minecart

This commit is contained in:
GameHerobrine 2024-01-31 05:41:39 +03:00
parent 5f1774b8ce
commit f200683643
3 changed files with 2 additions and 3 deletions

View file

@ -621,7 +621,7 @@ class PocketMinecraftServer{
++$actionCount; ++$actionCount;
try{ try{
$return = @call_user_func($this->schedule[$cid][0] ?? function(){}, $this->schedule[$cid][1], $this->schedule[$cid][2]); //somehow args can be null $return = @call_user_func($this->schedule[$cid][0] ?? function(){}, $this->schedule[$cid][1], $this->schedule[$cid][2]); //somehow args can be null
}catch(Throwable $e){ }catch(TypeError $e){
$return = false; $return = false;
} }
}else{ }else{

View file

@ -66,7 +66,6 @@ class Minecart extends Vehicle{
$this->width = 0.98; $this->width = 0.98;
$this->height = 0.7; $this->height = 0.7;
$this->yOffset = $this->height / 2; $this->yOffset = $this->height / 2;
$this->update();
} }
public function getDrops(){ public function getDrops(){