Fixed test.

This commit is contained in:
Florian Nücke
2020-12-01 19:53:43 +01:00
parent ac3e809b55
commit cf6efff5e3

View File

@@ -56,7 +56,7 @@ public class ObjectDeviceProtocolTests {
when(world.chunkExists(anyInt(), anyInt())).thenReturn(true);
final TileEntity tileEntity = mock(TileEntity.class);
when(world.getTileEntity(any())).thenReturn(tileEntity);
when(world.getTileEntity(eq(CONTROLLER_POS))).thenReturn(tileEntity);
when(tileEntity.getCapability(eq(busElementCapability), any())).thenReturn(LazyOptional.of(() -> busElement));
}