mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-22 20:49:43 +00:00
ladder fix 2.0
This commit is contained in:
parent
6f6f98cb68
commit
1e5f04a220
1 changed files with 2 additions and 4 deletions
|
|
@ -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;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue