mirror of
https://github.com/CivMC/Civ.git
synced 2026-07-15 23: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() {
|
||||
if (active && mbs.isComplete()) {
|
||||
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");
|
||||
deactivate();
|
||||
return;
|
||||
|
||||
@@ -82,4 +82,9 @@ public class ExtractOilRecipe extends ProductionRecipe {
|
||||
public boolean canApplySpeed() {
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean mustBeLoaded() {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -72,4 +72,8 @@ public interface IRecipe {
|
||||
default boolean canApplySpeed() {
|
||||
return true;
|
||||
}
|
||||
|
||||
default boolean mustBeLoaded() {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user