From cd8b2648f95529a8c3ff69ede49fbe041e4e79d3 Mon Sep 17 00:00:00 2001 From: Phoupraw <50520903+Phoupraw@users.noreply.github.com> Date: Fri, 29 Dec 2023 23:24:12 +0800 Subject: [PATCH] Update FoodGameTest.java small fix --- .../net/fabricmc/fabric/test/item/gametest/FoodGameTest.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fabric-item-api-v1/src/testmod/java/net/fabricmc/fabric/test/item/gametest/FoodGameTest.java b/fabric-item-api-v1/src/testmod/java/net/fabricmc/fabric/test/item/gametest/FoodGameTest.java index adbec29986..16938db7d5 100644 --- a/fabric-item-api-v1/src/testmod/java/net/fabricmc/fabric/test/item/gametest/FoodGameTest.java +++ b/fabric-item-api-v1/src/testmod/java/net/fabricmc/fabric/test/item/gametest/FoodGameTest.java @@ -89,7 +89,7 @@ public void nameMeatTest(TestContext context) { player.setStackInHand(Hand.MAIN_HAND, meat); player.interact(wolf, Hand.MAIN_HAND); float wolfHealth = wolf.getHealth(); - context.assertTrue(wolfHealth > 1, "actual %f, expect > 0".formatted(wolfHealth)); + context.assertTrue(wolfHealth > 0, "actual %f, expect > 0".formatted(wolfHealth)); context.complete(); } }