Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@ public static void fluidLinkCoverTest(GameTestHelper helper) {
});
}

@GameTest(template = "empty_5x5", batch = "coverTests", required = false)
public static void only_works_in_game_itemLinkCoverTest(GameTestHelper helper) {
@GameTest(template = "empty_5x5", batch = "coverTests")
public static void itemLinkCoverTest(GameTestHelper helper) {
QuantumChestMachine chest1 = (QuantumChestMachine) TestUtils.setMachine(helper, new BlockPos(1, 1, 1),
GTMachines.SUPER_CHEST[1]);
QuantumChestMachine chest2 = (QuantumChestMachine) TestUtils.setMachine(helper, new BlockPos(1, 1, 3),
Expand All @@ -63,9 +63,11 @@ public static void only_works_in_game_itemLinkCoverTest(GameTestHelper helper) {
GTItems.COVER_ENDER_ITEM_LINK.asStack(), Direction.UP);
cover1.setIo(IO.IN);
cover2.setIo(IO.OUT);
chest1.getItemHandlerCap(Direction.UP, false).insertItem(0, new ItemStack(Items.DIAMOND, 64), false);
ItemStack stack = new ItemStack(Items.DIAMOND, 64);
chest1.getItemHandlerCap(Direction.UP, false).insertItem(0, stack, false);
helper.runAtTickTime(20, () -> {
helper.assertTrue(TestUtils.isItemStackEqual(chest2.getStored(), new ItemStack(Items.DIAMOND, 64)),
helper.assertTrue(
ItemStack.isSameItem(chest2.getStored(), stack) && chest2.getStoredAmount() == stack.getCount(),
"ender item link cover didn't transfer items");
helper.succeed();
});
Expand Down
Loading