mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-20 11:39:43 +00:00
Repaired
This commit is contained in:
parent
509e67bfb7
commit
75e4174a2b
1 changed files with 1 additions and 6 deletions
|
|
@ -842,12 +842,7 @@ class Player{
|
|||
AchievementAPI::grantAchievement($this, "diamond");
|
||||
break;
|
||||
case CAKE:
|
||||
if($this->hasSpace(AIR, 0, 0) == true){
|
||||
$this->addItem(BUCKET, 0, 3, false);
|
||||
}
|
||||
else{
|
||||
$this->server->api->entity->drop(new Position($this->entity->x - 0.5, $this->entity->y, $this->entity->z - 0.5, $this->level), BlockAPI::getItem(BUCKET, 0, 3));
|
||||
}
|
||||
$this->addItem(BUCKET, 0, 3, false);
|
||||
break;
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue