mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-04-22 00:33:59 +00:00
Merge branch 'master' into 0.10
This commit is contained in:
commit
4c0daa462d
@ -25,6 +25,6 @@ use pocketmine\nbt\tag\String;
|
||||
|
||||
class Skeleton extends Monster implements ProjectileSource{
|
||||
protected function initEntity(){
|
||||
$this->namedtag->id = new String("id", "Chicken");
|
||||
$this->namedtag->id = new String("id", "Skeleton");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -388,8 +388,6 @@ abstract class BaseInventory implements Inventory{
|
||||
for($i = 0; $i < $this->getSize(); ++$i){
|
||||
$pk->slots[$i] = $this->getItem($i);
|
||||
}
|
||||
$pk->isEncoded = true;
|
||||
$pk->encode();
|
||||
|
||||
foreach($target as $player){
|
||||
if(($id = $player->getWindowId($this)) === -1 or $player->spawned !== true){
|
||||
@ -413,8 +411,6 @@ abstract class BaseInventory implements Inventory{
|
||||
$pk = new ContainerSetSlotPacket;
|
||||
$pk->slot = $index;
|
||||
$pk->item = clone $this->getItem($index);
|
||||
$pk->encode();
|
||||
$pk->isEncoded = true;
|
||||
|
||||
foreach($target as $player){
|
||||
if(($id = $player->getWindowId($this)) === -1){
|
||||
|
Loading…
x
Reference in New Issue
Block a user