mirror of
https://github.com/JamesPeters98/ChestsPlusPlus.git
synced 2025-01-25 09:41:32 +01:00
Update VirtualCraftingHolder.java
AutoCrafting was only happening in unloaded chunks!! oops.
This commit is contained in:
parent
b8119d6286
commit
dd3d77e85a
@ -210,7 +210,7 @@ public class VirtualCraftingHolder implements InventoryHolder {
|
|||||||
*/
|
*/
|
||||||
public void craftItem(){
|
public void craftItem(){
|
||||||
for(LocationInfo location : storage.getLocations()){
|
for(LocationInfo location : storage.getLocations()){
|
||||||
if(Utils.isLocationChunkLoaded(location.getLocation())) continue;
|
if(!Utils.isLocationChunkLoaded(location.getLocation())) continue;
|
||||||
Block block = location.getLocation().getBlock();
|
Block block = location.getLocation().getBlock();
|
||||||
Block blockBelow = block.getRelative(BlockFace.DOWN);
|
Block blockBelow = block.getRelative(BlockFace.DOWN);
|
||||||
Block blockAbove = block.getRelative(BlockFace.UP);
|
Block blockAbove = block.getRelative(BlockFace.UP);
|
||||||
|
Loading…
Reference in New Issue
Block a user