mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2026-11-29 01:04:29 +00:00
Merge gen-crash
This commit is contained in:
commit
d0923de181
26 files changed
+593
-233
No files matched your search
@@ -308,6 +308,7 @@ tasks.register('generationOrderProbe', JavaExec) {
|
||||
mainClass = 'art.arcane.iris.probe.GenerationOrderProbe'
|
||||
classpath = sourceSets.main.runtimeClasspath
|
||||
jvmArgs('--add-modules', 'jdk.incubator.vector')
|
||||
systemProperty('iris.probe.faultSurface', providers.gradleProperty('probeFaultSurface').orElse('').get())
|
||||
dependsOn(':core:compileJava')
|
||||
doFirst {
|
||||
Map<String, Provider<String>> required = [
|
||||
|
||||
@@ -66,8 +66,14 @@ public final class StubPlatform implements IrisPlatform {
|
||||
}
|
||||
|
||||
public static void bindGenerationStateHandlers() {
|
||||
String faultSurface = System.getProperty("iris.probe.faultSurface", "");
|
||||
DecoratorPlatformHooks.bind((state, hunk, rX, rZ, x, y, z, mantle) -> state,
|
||||
(surface, upward) -> surface.isOccluding());
|
||||
(surface, upward) -> {
|
||||
if (!faultSurface.isEmpty() && surface.key().startsWith(faultSurface)) {
|
||||
throw new IllegalArgumentException("Probe fault on " + surface.key());
|
||||
}
|
||||
return surface.isOccluding();
|
||||
});
|
||||
IrisObjectRotation.bindPlatformRotator(StubPlatform::rotateState);
|
||||
BlockDataMergeSupport.bindPlatformMerger(StubPlatform::mergeStates);
|
||||
TileData.bindPlatformReader(StubTileData::read);
|
||||
|
||||
Reference in new issue
Block a user