mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-21 12:09:43 +00:00
Fixed spawn eggs & buckets on creative ,pde
This commit is contained in:
parent
96c11adc89
commit
139d8b38b5
3 changed files with 16 additions and 4 deletions
|
|
@ -530,6 +530,10 @@ class Entity extends Position{
|
|||
17 => array("type" => 6, "value" => array(0, 0, 0)),
|
||||
);
|
||||
if($this->class === ENTITY_MOB and $this->type === MOB_SHEEP){
|
||||
if(!isset($this->data["Sheared"])){
|
||||
$this->data["Sheared"] = 0;
|
||||
$this->data["Color"] = mt_rand(0,15);
|
||||
}
|
||||
$d[16]["value"] = (($this->data["Sheared"] == 1 ? 1:0) << 5) | ($this->data["Color"] & 0x0F);
|
||||
}
|
||||
return $d;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue