Update VirtualCraftingHolder.java

AutoCrafting was only happening in unloaded chunks!! oops.
This commit is contained in:
jameslfc19 2020-07-27 00:42:39 +01:00
parent b8119d6286
commit dd3d77e85a

View File

@ -210,7 +210,7 @@ public class VirtualCraftingHolder implements InventoryHolder {
*/
public void craftItem(){
for(LocationInfo location : storage.getLocations()){
if(Utils.isLocationChunkLoaded(location.getLocation())) continue;
if(!Utils.isLocationChunkLoaded(location.getLocation())) continue;
Block block = location.getLocation().getBlock();
Block blockBelow = block.getRelative(BlockFace.DOWN);
Block blockAbove = block.getRelative(BlockFace.UP);