Skip to content

Commit

Permalink
fix: furnace not showing as lit in section-transitions
Browse files Browse the repository at this point in the history
  • Loading branch information
Boy0000 committed Jul 23, 2024
1 parent ab72406 commit a28ec29
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ object ContainerSyncListener : Listener {
}

/** Synchronize hopper pickups between sections */
@EventHandler
@EventHandler(ignoreCancelled = true)
fun InventoryPickupItemEvent.hopperGrabEvent() {
inventory.location?.sync { _, corresponding, section, corrSection ->
if (corrSection.isOnTopOf(section)) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -227,6 +227,15 @@ object SectionSyncListener : Listener {
block.sync(updateBlockData(blockData))
}

@EventHandler
fun InventoryBlockStartEvent.onFurnaceStart() {
if (!block.location.inSectionOverlap) return
deeperWorld.plugin.launch {
delay(1.ticks)
block.sync(updateBlockData(block.blockData))
}
}

/** Removes Iron Golem and Wither summons in corresponding section location due to duping **/
@EventHandler
fun EntitySpawnEvent.onEntitySummon() {
Expand Down

0 comments on commit a28ec29

Please sign in to comment.