mirror of
https://github.com/alexcrea/CustomAnvil.git
synced 2026-08-28 08:25:56 +02:00
custom craft logic deduplication
This commit is contained in:
parent
106bc724a1
commit
edceba879f
5 changed files with 51 additions and 40 deletions
|
|
@ -195,7 +195,7 @@ public class AnvilFuseTestUtil {
|
|||
|
||||
simulateClick(anvil, player, data.expectedResult());
|
||||
|
||||
// Should have similated the click
|
||||
// Should have simulated the click
|
||||
assertEqual(data.leftItem(), anvil.getFirstItem());
|
||||
assertEqual(data.rightItem(), anvil.getSecondItem());
|
||||
assertEqual(data.resultSlotItem(), anvil.getResult());
|
||||
|
|
@ -260,7 +260,7 @@ public class AnvilFuseTestUtil {
|
|||
}
|
||||
|
||||
public static boolean isAir(@Nullable ItemStack item) {
|
||||
return item == null || item.isEmpty();
|
||||
return item == null || item.isEmpty() || item.getAmount() == 0;
|
||||
}
|
||||
|
||||
public static void assertPriceEqual(Integer expectedPrice, int price) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue