mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-22 20:49:43 +00:00
test fix
This commit is contained in:
parent
0aee4065e9
commit
3ce6040bf3
1 changed files with 3 additions and 3 deletions
|
|
@ -1561,16 +1561,16 @@ class Player{
|
||||||
$data["eid"] = $packet->eid;
|
$data["eid"] = $packet->eid;
|
||||||
$data["player"] = $this;
|
$data["player"] = $this;
|
||||||
|
|
||||||
if($packet->slot === 0x28 or $packet->slot === 0){ //0 for 0.8.0 compatibility
|
/*if($packet->slot === 0x28 or $packet->slot === 0){ //0 for 0.8.0 compatibility
|
||||||
$data["slot"] = -1;
|
$data["slot"] = -1;
|
||||||
$data["item"] = BlockAPI::getItem(AIR, 0, 0);
|
$data["item"] = BlockAPI::getItem(AIR, 0, 0);
|
||||||
if($this->server->handle("player.equipment.change", $data) !== false){
|
if($this->server->handle("player.equipment.change", $data) !== false){
|
||||||
$this->slot = -1;
|
$this->slot = -1;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}else{
|
}else{*/
|
||||||
$packet->slot -= 9;
|
$packet->slot -= 9;
|
||||||
}
|
//}
|
||||||
|
|
||||||
|
|
||||||
if(($this->gamemode & 0x01) === SURVIVAL){
|
if(($this->gamemode & 0x01) === SURVIVAL){
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue