mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-20 19:49:44 +00:00
Fixed server crash releated to inventory spawning
This commit is contained in:
parent
59a95aadd2
commit
4b744d7af3
2 changed files with 2 additions and 2 deletions
|
|
@ -429,7 +429,7 @@ class Player{
|
|||
$this->eventHandler("Your connection is bad, you may experience lag and slow map loading.", "server.chat");
|
||||
}
|
||||
foreach($this->inventory as $s => $data){
|
||||
if($data[0] >= 0 or $data[2] >= 0){
|
||||
if($data[0] > 0 and $data[2] >= 0){
|
||||
$e = $this->server->api->entity->add(ENTITY_ITEM, $data[0], array(
|
||||
"x" => $this->entity->x + 0.5,
|
||||
"y" => $this->entity->y + 0.19,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue