mirror of
https://github.com/GTNewHorizons/Botania.git
synced 2026-11-17 19:05:16 +00:00
Fixed some generating flowers acting like Dayblooms in which they'd generate mana passively.
This commit is contained in:
1 parent
bab80d2b6f
commit
acbf050bf8
2 files changed
+7
-2
No files matched your search
@@ -128,8 +128,7 @@ public class SubTileGenerating extends SubTileEntity {
|
||||
}
|
||||
|
||||
public boolean canGeneratePassively() {
|
||||
boolean rain = supertile.getWorldObj().getWorldChunkManager().getBiomeGenAt(supertile.xCoord, supertile.zCoord).getIntRainfall() > 0 && (supertile.getWorldObj().isRaining() || supertile.getWorldObj().isThundering());
|
||||
return !supertile.getWorldObj().isRemote && supertile.getWorldObj().isDaytime() && !rain && supertile.getWorldObj().canBlockSeeTheSky(supertile.xCoord, supertile.yCoord + 1, supertile.zCoord);
|
||||
return false;
|
||||
}
|
||||
|
||||
public int getDelayBetweenPassiveGeneration() {
|
||||
|
||||
@@ -21,6 +21,12 @@ public class SubTileDaybloom extends SubTileGenerating {
|
||||
public int getColor() {
|
||||
return 0xFFFF00;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean canGeneratePassively() {
|
||||
boolean rain = supertile.getWorldObj().getWorldChunkManager().getBiomeGenAt(supertile.xCoord, supertile.zCoord).getIntRainfall() > 0 && (supertile.getWorldObj().isRaining() || supertile.getWorldObj().isThundering());
|
||||
return !supertile.getWorldObj().isRemote && supertile.getWorldObj().isDaytime() && !rain && supertile.getWorldObj().canBlockSeeTheSky(supertile.xCoord, supertile.yCoord + 1, supertile.zCoord);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean shouldSyncPassiveGeneration() {
|
||||
|
||||
Reference in new issue
Block a user