mirror of
https://github.com/GTNewHorizons/Botania.git
synced 2026-11-14 01:04:16 +00:00
Null check... Closes #870
This commit is contained in:
1 parent
97887fae3b
commit
29cb302cd4
3 files changed
+3
-3
No files matched your search
@@ -1,4 +1,4 @@
|
||||
@API(owner = "Botania", apiVersion = "46", provides = "BotaniaAPI")
|
||||
@API(owner = "Botania", apiVersion = "47", provides = "BotaniaAPI")
|
||||
package vazkii.botania.api;
|
||||
import cpw.mods.fml.common.API;
|
||||
|
||||
@@ -105,7 +105,7 @@ public class SubTileFunctional extends SubTileEntity {
|
||||
}
|
||||
}
|
||||
|
||||
if(!needsNew) {
|
||||
if(!needsNew && linkedPool != null) {
|
||||
TileEntity tileAt = supertile.getWorldObj().getTileEntity(linkedPool.xCoord, linkedPool.yCoord, linkedPool.zCoord);
|
||||
if(!(tileAt instanceof IManaPool)) {
|
||||
linkedPool = null;
|
||||
|
||||
@@ -98,7 +98,7 @@ public class SubTileGenerating extends SubTileEntity {
|
||||
}
|
||||
}
|
||||
|
||||
if(!needsNew) {
|
||||
if(!needsNew && linkedCollector != null) {
|
||||
TileEntity tileAt = supertile.getWorldObj().getTileEntity(linkedCollector.xCoord, linkedCollector.yCoord, linkedCollector.zCoord);
|
||||
if(!(tileAt instanceof IManaCollector)) {
|
||||
linkedCollector = null;
|
||||
|
||||
Reference in new issue
Block a user