Passive flowers no longer decay if planted on Enchanted Soil.

This commit is contained in:
Vasco Lavos committed 2015-09-23 23:01:40 +01:00
1 parent 9124e4f77f
commit d90cd50e38
7 files changed
+69 -27

No files matched your search

@@ -39,6 +39,11 @@ public class SubTileEntity {
protected TileEntity supertile;
public int ticksExisted = 0;
/** true if this flower is working on Enchanted Soil **/
public boolean overgrowth = false;
/** true if this flower is working on Enchanted Soil and this is the second tick **/
public boolean overgrowthBoost = false;
/** The Tag items should use to store which sub tile they are. **/
public static final String TAG_TYPE = "type";
@@ -213,6 +218,13 @@ public class SubTileEntity {
public int getPowerLevel(int side) {
return 0;
}
/**
* Gets if this SubTileEntity is affected by Enchanted Soil's speed boost.
*/
public boolean isOvergrowthAffected() {
return true;
}
}