mirror of
https://github.com/CivMC/Civ.git
synced 2026-07-15 23:20:44 +00:00
fix chorus not growing
This commit is contained in:
@@ -894,9 +894,9 @@ plants:
|
|||||||
name: Chorus Plant
|
name: Chorus Plant
|
||||||
grower:
|
grower:
|
||||||
type: tree
|
type: tree
|
||||||
material: CHORUS_FRUIT
|
material: CHORUS_FLOWER
|
||||||
vanilla_materials:
|
vanilla_materials:
|
||||||
- CHORUS_FRUIT
|
- CHORUS_FLOWER
|
||||||
id: 33
|
id: 33
|
||||||
item:
|
item:
|
||||||
==: org.bukkit.inventory.ItemStack
|
==: org.bukkit.inventory.ItemStack
|
||||||
|
|||||||
@@ -164,7 +164,7 @@ public class TreeGrower extends AgeableGrower {
|
|||||||
}
|
}
|
||||||
Block block = plant.getLocation().getBlock();
|
Block block = plant.getLocation().getBlock();
|
||||||
// Re-Read the block data to make sure it is up to date
|
// Re-Read the block data to make sure it is up to date
|
||||||
if (!(block.getBlockData() instanceof Sapling)) {
|
if (!(block.getBlockData() instanceof Sapling) && block.getType() != Material.CHORUS_FLOWER) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
Material mat = block.getType();
|
Material mat = block.getType();
|
||||||
|
|||||||
Reference in New Issue
Block a user