mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2026-10-22 08:07:42 +00:00
Memory patch
This commit is contained in:
1 parent
201472b635
commit
9eb05fd987
2 files changed
+4
-2
No files matched your search
+3
-2
@@ -30,6 +30,7 @@ import static org.mockito.ArgumentMatchers.anyString;
|
||||
import static org.mockito.Mockito.RETURNS_DEEP_STUBS;
|
||||
import static org.mockito.Mockito.mock;
|
||||
import static org.mockito.Mockito.when;
|
||||
import static org.mockito.Mockito.withSettings;
|
||||
|
||||
public class IrisPerfectionModifierColumnTest {
|
||||
@Rule
|
||||
@@ -200,7 +201,7 @@ public class IrisPerfectionModifierColumnTest {
|
||||
if (existing != null) {
|
||||
return existing;
|
||||
}
|
||||
NativeBlockState block = mock(NativeBlockState.class);
|
||||
NativeBlockState block = mock(NativeBlockState.class, withSettings().stubOnly());
|
||||
states.put(key, block);
|
||||
when(block.key()).thenReturn(key);
|
||||
when(block.isAir()).thenReturn(key.equals("minecraft:air"));
|
||||
@@ -209,7 +210,7 @@ public class IrisPerfectionModifierColumnTest {
|
||||
when(block.isWaterLogged()).thenReturn(key.contains("waterlogged=true"));
|
||||
when(block.isDecorant()).thenReturn(key.equals("minecraft:poppy") || key.startsWith("minecraft:tall_grass"));
|
||||
when(block.canPlaceOnto(any())).thenAnswer(call -> "minecraft:tall_grass[half=lower]".equals(call.<NativeBlockState>getArgument(0).key()));
|
||||
BlockData handle = mock(BlockData.class);
|
||||
BlockData handle = mock(BlockData.class, withSettings().stubOnly());
|
||||
when(block.nativeHandle()).thenReturn(handle);
|
||||
when(handle.isFaceSturdy(any(), any())).thenReturn(key.equals("minecraft:stone"));
|
||||
when(block.withProperty(anyString(), anyString())).thenAnswer(call -> {
|
||||
|
||||
Reference in new issue
Block a user