Crystals will start floating in water once they are no longer growing.
This commit is contained in:
@@ -19,6 +19,7 @@
|
|||||||
package appeng.entity;
|
package appeng.entity;
|
||||||
|
|
||||||
|
|
||||||
|
import appeng.items.misc.ItemCrystalSeed;
|
||||||
import net.minecraft.block.BlockState;
|
import net.minecraft.block.BlockState;
|
||||||
import net.minecraft.block.material.Material;
|
import net.minecraft.block.material.Material;
|
||||||
import net.minecraft.entity.EntityType;
|
import net.minecraft.entity.EntityType;
|
||||||
@@ -204,7 +205,11 @@ public final class EntityGrowingCrystal extends AEBaseEntityItem
|
|||||||
// Don't let seeds "float" on water surface
|
// Don't let seeds "float" on water surface
|
||||||
@Override
|
@Override
|
||||||
protected void applyFloatMotion() {
|
protected void applyFloatMotion() {
|
||||||
|
ItemStack item = getItem();
|
||||||
|
if (item.getItem() instanceof ItemCrystalSeed) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
super.applyFloatMotion();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user