Skip to content

Commit bed7b73

Browse files
authored
Fix Alfheim lighting engine ram usage workaround with Alfheim 1.6 (#2838)
1 parent d1198be commit bed7b73

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
package dev.redstudio.alfheim.lighting;
2+
3+
// stub class to appease javac
4+
public class LightingEngine {
5+
}

src/main/java/gregtech/api/util/world/DummyWorld.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
import net.minecraftforge.fml.common.Optional.Method;
1616
import net.minecraftforge.fml.relauncher.FMLLaunchHandler;
1717

18+
import dev.redstudio.alfheim.lighting.LightingEngine;
1819
import org.jetbrains.annotations.NotNull;
1920
import org.jetbrains.annotations.Nullable;
2021

@@ -116,4 +117,9 @@ public int getLightFromNeighborsFor(EnumSkyBlock type, BlockPos pos) {
116117
public int alfheim$getLight(BlockPos pos, boolean checkNeighbors) {
117118
return 15;
118119
}
120+
121+
@Method(modid = Mods.Names.ALFHEIM)
122+
public LightingEngine getAlfheim$lightingEngine() {
123+
return null;
124+
}
119125
}

0 commit comments

Comments
 (0)