mirror of
https://github.com/FabricMC/fabric.git
synced 2025-02-17 04:01:46 -05:00
Fix vanilla storage game tests being sensitive to rotation (#4108)
This commit is contained in:
parent
1d5c24337f
commit
464f0e851d
1 changed files with 2 additions and 1 deletions
|
@ -113,10 +113,11 @@ public class VanillaStorageTests {
|
|||
InventoryStorage storage = InventoryStorage.of(inventory, null);
|
||||
|
||||
BlockPos comparatorPos = new BlockPos(1, 2, 0);
|
||||
Direction comparatorFacing = context.getRotation().rotate(Direction.WEST);
|
||||
// support block under the comparator
|
||||
context.setBlockState(comparatorPos.offset(Direction.DOWN), Blocks.GREEN_WOOL.getDefaultState());
|
||||
// comparator
|
||||
context.setBlockState(comparatorPos, Blocks.COMPARATOR.getDefaultState().with(ComparatorBlock.FACING, Direction.WEST));
|
||||
context.setBlockState(comparatorPos, Blocks.COMPARATOR.getDefaultState().with(ComparatorBlock.FACING, comparatorFacing));
|
||||
|
||||
try (Transaction transaction = Transaction.openOuter()) {
|
||||
if (world.getBlockTickScheduler().isQueued(context.getAbsolutePos(comparatorPos), Blocks.COMPARATOR)) {
|
||||
|
|
Loading…
Reference in a new issue