mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-04-21 08:17:34 +00:00
Fixed slot AIR offset
This commit is contained in:
parent
5dc52ad97d
commit
b63e49acf8
@ -1484,7 +1484,7 @@ class Player{
|
||||
$data["eid"] = $this->eid;
|
||||
$data["player"] = $this;
|
||||
|
||||
if($data["slot"] === 0){
|
||||
if($data["slot"] === 0x28 or $data["slot"] === 0){ //0 for 0.8.0 compatibility
|
||||
$data["slot"] = -1;
|
||||
$data["item"] = BlockAPI::getItem(AIR, 0, 0);
|
||||
if($this->server->handle("player.equipment.change", $data) !== false){
|
||||
|
Loading…
x
Reference in New Issue
Block a user