mirror of
https://github.com/Artillex-Studios/AxMinions.git
synced 2024-11-25 12:05:56 +01:00
Fix issue
This commit is contained in:
parent
d0a3a09a5e
commit
17e00615da
@ -566,7 +566,9 @@ class Minion(
|
||||
|
||||
if (ticking) {
|
||||
Scheduler.get().runAt(linkedChest) {
|
||||
linkedInventory = (linkedChest?.block?.state as? Container)?.inventory
|
||||
if (linkedChest!!.world!!.isChunkLoaded(linkedChest!!.blockX shr 4, linkedChest!!.blockZ shr 4)) {
|
||||
linkedInventory = (linkedChest?.block?.state as? Container)?.inventory
|
||||
}
|
||||
}
|
||||
} else {
|
||||
linkedInventory = null
|
||||
|
Loading…
Reference in New Issue
Block a user