mirror of
https://github.com/CivMC/Civ.git
synced 2026-07-18 00:20:44 +00:00
only apply to extract oil
This commit is contained in:
@@ -489,7 +489,7 @@ public class FurnCraftChestFactory extends Factory implements IIOFInventoryProvi
|
|||||||
public void run() {
|
public void run() {
|
||||||
if (active && mbs.isComplete()) {
|
if (active && mbs.isComplete()) {
|
||||||
Block f = getFurnace();
|
Block f = getFurnace();
|
||||||
if (!f.getWorld().isChunkLoaded(f.getLocation().getBlockX() >> 4, f.getLocation().getBlockZ() >> 4)) {
|
if (currentRecipe.mustBeLoaded() && !f.getWorld().isChunkLoaded(f.getLocation().getBlockX() >> 4, f.getLocation().getBlockZ() >> 4)) {
|
||||||
sendActivatorMessage(ChatColor.GOLD + name + " deactivated, because the chunk was unloaded");
|
sendActivatorMessage(ChatColor.GOLD + name + " deactivated, because the chunk was unloaded");
|
||||||
deactivate();
|
deactivate();
|
||||||
return;
|
return;
|
||||||
|
|||||||
@@ -82,4 +82,9 @@ public class ExtractOilRecipe extends ProductionRecipe {
|
|||||||
public boolean canApplySpeed() {
|
public boolean canApplySpeed() {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean mustBeLoaded() {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -72,4 +72,8 @@ public interface IRecipe {
|
|||||||
default boolean canApplySpeed() {
|
default boolean canApplySpeed() {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
default boolean mustBeLoaded() {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user