-
Notifications
You must be signed in to change notification settings - Fork 11
Open
Description
Currently it is only syncing hoppers when it receives an item from a below section
/** Synchronize hopper pickups between sections */
@EventHandler(ignoreCancelled = true)
fun InventoryPickupItemEvent.hopperGrabEvent() {
inventory.location?.sync { _, corresponding, section, corrSection ->
if (corrSection.isOnTopOf(section)) {
//if there are no leftover items, remove the itemstack
if ((corresponding.state as? Container)?.inventory?.addItem(item.itemStack)?.isEmpty() != false)
item.remove()
isCancelled = true
}
}
}there is probably a reason for this relating to chests etc but should probably get sorted
Base.Profile.2024.07.23.-.16.39.37.02.1.mp4
Metadata
Metadata
Assignees
Labels
No labels