mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-11 14:05:35 +00:00
Cake: fixed desync on cancellation of eating
closes #3591 we don't support eating in creative right now, but the cake shouldn't appear to be eaten when it's not.
This commit is contained in:
parent
08f3c18de9
commit
5b8ce7e3e2
@ -94,8 +94,7 @@ class Cake extends Transparent implements FoodSource{
|
|||||||
|
|
||||||
public function onInteract(Item $item, int $face, Vector3 $clickVector, ?Player $player = null) : bool{
|
public function onInteract(Item $item, int $face, Vector3 $clickVector, ?Player $player = null) : bool{
|
||||||
if($player !== null){
|
if($player !== null){
|
||||||
$player->consumeObject($this);
|
return $player->consumeObject($this);
|
||||||
return true;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user