From 5b8ce7e3e218e869092904206fcc80e3ad2b643a Mon Sep 17 00:00:00 2001 From: "Dylan K. Taylor" Date: Sat, 30 Oct 2021 21:02:24 +0100 Subject: [PATCH] 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. --- src/block/Cake.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/block/Cake.php b/src/block/Cake.php index 75030c659d..e9f82943f4 100644 --- a/src/block/Cake.php +++ b/src/block/Cake.php @@ -94,8 +94,7 @@ class Cake extends Transparent implements FoodSource{ public function onInteract(Item $item, int $face, Vector3 $clickVector, ?Player $player = null) : bool{ if($player !== null){ - $player->consumeObject($this); - return true; + return $player->consumeObject($this); } return false;