diff --git a/CHANGELOG.md b/CHANGELOG.md index 64c0847f..0c5339d4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,6 @@ +# VERSION 1.2.7 +* Fixed cascading loading issues, closes #243 + # VERSION 1.2.6 * Renamed Controller Extension to Controller Access Point * Added a way to increase the Controller range by using upgrades diff --git a/build.gradle b/build.gradle index 1c984936..cc3c4048 100644 --- a/build.gradle +++ b/build.gradle @@ -12,7 +12,7 @@ buildscript { apply plugin: 'net.minecraftforge.gradle' group = 'com.buuz135' -version = '1.20.1-1.2.6' +version = '1.20.1-1.2.7' java { archivesBaseName = 'functionalstorage' diff --git a/src/main/java/com/buuz135/functionalstorage/block/tile/StorageControllerExtensionTile.java b/src/main/java/com/buuz135/functionalstorage/block/tile/StorageControllerExtensionTile.java index 3b6e82b8..fb98fed2 100644 --- a/src/main/java/com/buuz135/functionalstorage/block/tile/StorageControllerExtensionTile.java +++ b/src/main/java/com/buuz135/functionalstorage/block/tile/StorageControllerExtensionTile.java @@ -80,6 +80,7 @@ public LazyOptional getCapability(@Nonnull Capability cap, @Nullable D private Optional getControllerInstance() { if (getControllerPos() == null) return Optional.empty(); + if (level == null || !level.isLoaded(getControllerPos())) return Optional.empty(); return TileUtil.getTileEntity(this.level, getControllerPos(), StorageControllerTile.class); }