From fbe249a65e5621ffb071a6bb4fba87e9bea297b1 Mon Sep 17 00:00:00 2001 From: Liam Giraldo Date: Wed, 8 May 2024 21:48:36 -0400 Subject: [PATCH] yizhen fix --- .../com/raccoon/mygame/controllers/CollisionController.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/src/com/raccoon/mygame/controllers/CollisionController.java b/core/src/com/raccoon/mygame/controllers/CollisionController.java index e848c5da..06b41c7c 100644 --- a/core/src/com/raccoon/mygame/controllers/CollisionController.java +++ b/core/src/com/raccoon/mygame/controllers/CollisionController.java @@ -111,9 +111,10 @@ public void processCustomers(Player p, Array customers) { // System.out.println("served"); p.dishInventory.clear(0); c.setShow(false); + return; // System.out.println(c.getShow()); } - }else if (p.dishInventory.rightFilled()) { + }if (p.dishInventory.rightFilled()) { if (c.serve(p.dishInventory.get(1))) { p.dishInventory.clear(1); c.setShow(false);