Revert "Reverted flower binding cache handling changes from a month ago. I have no idea if this will fix anything but we might as well try."

This reverts commit a242e382b4.
This commit is contained in:
Lizbeth Rika committed 2015-06-08 23:00:39 +01:00
1 parent b8d456cc1b
commit 6211bb967f
3 files changed
+21 -13

No files matched your search

@@ -84,13 +84,17 @@ public class SubTileGenerating extends SubTileEntity {
if(linkedCollector == null) {
needsNew = true;
if(cachedCollectorCoordinates != null && supertile.getWorldObj().blockExists(cachedCollectorCoordinates.posX, cachedCollectorCoordinates.posY, cachedCollectorCoordinates.posZ)) {
TileEntity tileAt = supertile.getWorldObj().getTileEntity(cachedCollectorCoordinates.posX, cachedCollectorCoordinates.posY, cachedCollectorCoordinates.posZ);
if(tileAt != null && tileAt instanceof IManaCollector) {
linkedCollector = tileAt;
needsNew = false;
if(cachedCollectorCoordinates != null) {
needsNew = false;
if(supertile.getWorldObj().blockExists(cachedCollectorCoordinates.posX, cachedCollectorCoordinates.posY, cachedCollectorCoordinates.posZ)) {
needsNew = true;
TileEntity tileAt = supertile.getWorldObj().getTileEntity(cachedCollectorCoordinates.posX, cachedCollectorCoordinates.posY, cachedCollectorCoordinates.posZ);
if(tileAt != null && tileAt instanceof IManaCollector) {
linkedCollector = tileAt;
needsNew = false;
}
cachedCollectorCoordinates = null;
}
cachedCollectorCoordinates = null;
}
}