From bc1831bd52cb551c12f9428e28b8dcbd8db65d61 Mon Sep 17 00:00:00 2001
From: RockTheDev <37476299+RockTheDev@users.noreply.github.com>
Date: Wed, 4 Nov 2020 17:13:52 +0200
Subject: [PATCH 1/2] Basic fixes to Infernalfarm

Fixed infernalfarm so it would actually work - harvest, replant nether wart.
---
 .../blocks/machines/InfernalFarm.java            | 16 +++++++++++++++-
 1 file changed, 15 insertions(+), 1 deletion(-)

diff --git a/src/main/java/io/github/thebusybiscuit/sensibletoolbox/blocks/machines/InfernalFarm.java b/src/main/java/io/github/thebusybiscuit/sensibletoolbox/blocks/machines/InfernalFarm.java
index c2cc62b5..5a8b32a3 100644
--- a/src/main/java/io/github/thebusybiscuit/sensibletoolbox/blocks/machines/InfernalFarm.java
+++ b/src/main/java/io/github/thebusybiscuit/sensibletoolbox/blocks/machines/InfernalFarm.java
@@ -60,6 +60,20 @@ public Recipe getRecipe() {
         res.setIngredient('N', Material.NETHER_BRICK);
         return res;
     }
+    
+    @Override
+    public void onBlockRegistered(Location location, boolean isPlacing) {
+        int range = RADIUS / 2;
+        Block block = location.getBlock();
+
+        for (int x = -range; x <= range; x++) {
+            for (int z = -range; z <= range; z++) {
+                blocks.add(block.getRelative(x, 2, z));
+            }
+        }
+
+        super.onBlockRegistered(location, isPlacing);
+    }
 
     @Override
     public void onServerTick() {
@@ -71,9 +85,9 @@ public void onServerTick() {
 
                         if (ageable.getAge() >= ageable.getMaximumAge()) {
                             setCharge(getCharge() - getScuPerCycle());
-
                             ageable.setAge(0);
                             crop.getWorld().playEffect(crop.getLocation(), Effect.STEP_SOUND, crop.getType());
+                            crop.setBlockData(ageable);
                             setJammed(!output(Material.NETHER_WART));
                             break;
                         }

From 92a60ebd59ae0f2e1c3291a4efae992e7c3c87ff Mon Sep 17 00:00:00 2001
From: RockTheDev <37476299+RockTheDev@users.noreply.github.com>
Date: Wed, 4 Nov 2020 17:26:51 +0200
Subject: [PATCH 2/2] Fixed building issue

Fixed building issue - missed an import
---
 .../sensibletoolbox/blocks/machines/InfernalFarm.java            | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/main/java/io/github/thebusybiscuit/sensibletoolbox/blocks/machines/InfernalFarm.java b/src/main/java/io/github/thebusybiscuit/sensibletoolbox/blocks/machines/InfernalFarm.java
index 5a8b32a3..295ddf47 100644
--- a/src/main/java/io/github/thebusybiscuit/sensibletoolbox/blocks/machines/InfernalFarm.java
+++ b/src/main/java/io/github/thebusybiscuit/sensibletoolbox/blocks/machines/InfernalFarm.java
@@ -4,6 +4,7 @@
 import java.util.Set;
 
 import org.bukkit.Effect;
+import org.bukkit.Location;
 import org.bukkit.Material;
 import org.bukkit.block.Block;
 import org.bukkit.block.data.Ageable;