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