mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-20 11:39:43 +00:00
Fixed gh#332
Crafting with buckets (milk) returns the bucket
This commit is contained in:
parent
286b30cf4e
commit
5fc192b730
1 changed files with 6 additions and 0 deletions
|
|
@ -791,6 +791,7 @@ class Player{
|
|||
}
|
||||
|
||||
if(is_array($res)){
|
||||
|
||||
if($this->server->api->dhandle("player.craft", array("player" => $this, "recipe" => $recipe, "craft" => $craft, "type" => $type)) === false){
|
||||
return false;
|
||||
}
|
||||
|
|
@ -840,6 +841,11 @@ class Player{
|
|||
case DIAMOND:
|
||||
AchievementAPI::grantAchievement($this, "diamond");
|
||||
break;
|
||||
case CAKE:
|
||||
for($i; $i <= 2; $i++){
|
||||
$this->addItem(BUCKET, 0, 1, false);
|
||||
}
|
||||
break;
|
||||
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue