Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions src/main/java/gregtech/api/util/Mods.java
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,6 @@ public enum Mods {
VoxelMap(Names.VOXEL_MAP),
XaerosMinimap(Names.XAEROS_MINIMAP),
Vintagium(Names.VINTAGIUM),
Alfheim(Names.ALFHEIM),

// Special Optifine handler, but consolidated here for simplicity
Optifine(null) {
Expand Down Expand Up @@ -145,7 +144,6 @@ public static class Names {
public static final String VOXEL_MAP = "voxelmap";
public static final String XAEROS_MINIMAP = "xaerominimap";
public static final String VINTAGIUM = "vintagium";
public static final String ALFHEIM = "alfheim";
}

private final String ID;
Expand Down
23 changes: 0 additions & 23 deletions src/main/java/gregtech/api/util/world/DummyWorld.java
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,6 @@ public DummyWorld() {
// De-allocate lightUpdateBlockList, checkLightFor uses this
ObfuscationReflectionHelper.setPrivateValue(World.class, this, null,
FMLLaunchHandler.isDeobfuscatedEnvironment() ? "lightUpdateBlockList" : "field_72994_J");

// De-allocate alfheim lighting engine
if (Mods.Alfheim.isModLoaded()) {
ObfuscationReflectionHelper.setPrivateValue(World.class, this, null,
"alfheim$lightingEngine");
}
}

@Override
Expand Down Expand Up @@ -99,21 +93,4 @@ protected boolean isChunkLoaded(int x, int z, boolean allowEmpty) {
public boolean checkLightFor(@NotNull EnumSkyBlock lightType, @NotNull BlockPos pos) {
return true;
}

@Override
@Method(modid = Mods.Names.ALFHEIM)
public World init() {
return this;
}

@Override
@Method(modid = Mods.Names.ALFHEIM)
public int getLightFromNeighborsFor(EnumSkyBlock type, BlockPos pos) {
return 15;
}

@Method(modid = Mods.Names.ALFHEIM)
public int alfheim$getLight(BlockPos pos, boolean checkNeighbors) {
return 15;
}
}