Refactored new multiversion SUGAR_CANE_BLOCK material.

This commit is contained in:
ProSavage 2018-08-13 00:38:01 -05:00
parent a0d3841826
commit 7bfe5cef22
1 changed files with 2 additions and 2 deletions

View File

@ -61,11 +61,11 @@ public class CropUpgrades implements Listener {
if (below.getType() == P.p.SUGARCANEBLOCK) {
if (below.getType() == P.p.SUGAR_CANE_BLOCK) {
org.bukkit.block.Block above = e.getBlock().getLocation().add(0, 1, 0).getBlock();
if (above.getType() == Material.AIR && above.getLocation().add(0, -2, 0).getBlock().getType() != Material.AIR) {
above.setType(P.p.SUGARCANEBLOCK);
above.setType(P.p.SUGAR_CANE_BLOCK);
}
}