ladder fix 2.0

This commit is contained in:
GameHerobrine 2022-05-10 18:19:44 +03:00
parent 6f6f98cb68
commit 1e5f04a220

View file

@ -635,10 +635,8 @@ class Entity extends Position{
$this->data["Color"] = mt_rand(0,15); $this->data["Color"] = mt_rand(0,15);
} }
$d[16]["value"] = (($this->data["Sheared"] == 1 ? 1:0) << 4) | ($this->data["Color"] & 0x0F); $d[16]["value"] = (($this->data["Sheared"] == 1 ? 1:0) << 4) | ($this->data["Color"] & 0x0F);
}elseif($this->type === OBJECT_PRIMEDTNT){ }elseif($this->class === ENTITY_OBJECT && $this->type === OBJECT_PRIMEDTNT){ //ladder fix 2.0
if(isset($this->data["fuse"])){ //ladder fix $d[16]["value"] = (int) max(0, $this->data["fuse"] - (microtime(true) - $this->spawntime) * 20);
$d[16]["value"] = (int) max(0, $this->data["fuse"] - (microtime(true) - $this->spawntime) * 20);
}
}elseif($this->class === ENTITY_PLAYER){ }elseif($this->class === ENTITY_PLAYER){
if($this->player->isSleeping !== false){ if($this->player->isSleeping !== false){
$d[16]["value"] = 2; $d[16]["value"] = 2;