From 7bfe5cef229ea8a4b6c99bff86c496a39f540337 Mon Sep 17 00:00:00 2001 From: ProSavage Date: Mon, 13 Aug 2018 00:38:01 -0500 Subject: [PATCH] Refactored new multiversion SUGAR_CANE_BLOCK material. --- .../massivecraft/factions/zcore/fupgrades/CropUpgrades.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/massivecraft/factions/zcore/fupgrades/CropUpgrades.java b/src/main/java/com/massivecraft/factions/zcore/fupgrades/CropUpgrades.java index 4323af65..697741b5 100644 --- a/src/main/java/com/massivecraft/factions/zcore/fupgrades/CropUpgrades.java +++ b/src/main/java/com/massivecraft/factions/zcore/fupgrades/CropUpgrades.java @@ -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); } }