Fix nullPointerException (#87)

This commit is contained in:
Yurii authored and GitHub committed 2026-01-30 07:37:05 +01:00
1 parent 7ada07b5ac
commit 245b5c7b06
1 file changed
+5 -1
@@ -314,7 +314,11 @@ public class TileReactorStabilizer extends TileEntity
@Override
public int getInventoryStackLimit() {
TileReactorCore core = getMaster();
return core.getInventoryStackLimit();
if (core != null) {
return core.getInventoryStackLimit();
} else {
return 0;
}
}
@Override