Skip to content

Commit effa191

Browse files
authored
Make stapi get angree (#169)
1 parent c10cd34 commit effa191

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

  • station-flattening-v0/src/main/java/net/modificationstation/stationapi/mixin/flattening

station-flattening-v0/src/main/java/net/modificationstation/stationapi/mixin/flattening/CaveGenBaseMixin.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@ public void stationapi_setWorld(World world) {
2020
@Override
2121
@Unique
2222
public World stationapi_getWorld() {
23+
if (stationapi_world == null) {
24+
throw new RuntimeException("stationapi_world is null, use CaveGenBaseImpl.stationapi_setWorld in your custom ChunkSource constructor to fix.");
25+
}
2326
return stationapi_world;
2427
}
2528
}

0 commit comments

Comments
 (0)