mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-22 20:49:43 +00:00
Fixed gh#332
Crafting with buckets (milk) returns the bucket
This commit is contained in:
parent
5fc192b730
commit
c798a33363
1 changed files with 5 additions and 2 deletions
|
|
@ -842,8 +842,11 @@ class Player{
|
||||||
AchievementAPI::grantAchievement($this, "diamond");
|
AchievementAPI::grantAchievement($this, "diamond");
|
||||||
break;
|
break;
|
||||||
case CAKE:
|
case CAKE:
|
||||||
for($i; $i <= 2; $i++){
|
if($this->hasSpace(AIR, 0, 3) == true){
|
||||||
$this->addItem(BUCKET, 0, 1, false);
|
$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));
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue