@@ -9,6 +9,7 @@ import com.mineinabyss.deeperworld.sections.correspondingLocation
99import com.mineinabyss.deeperworld.sections.inSectionOverlap
1010import com.mineinabyss.idofront.events.call
1111import com.mineinabyss.idofront.time.ticks
12+ import io.papermc.paper.event.block.BlockBreakBlockEvent
1213import it.unimi.dsi.fastutil.objects.ObjectOpenHashSet
1314import kotlinx.coroutines.delay
1415import net.kyori.adventure.text.Component
@@ -50,6 +51,11 @@ class SectionSyncListener(
5051 private val attachedBlocks = ObjectOpenHashSet (Tag .REPLACEABLE .values.plus(setOf (Material .TORCH , Material .WALL_TORCH , Material .SPORE_BLOSSOM )))
5152 private val attachedFaces = ObjectOpenHashSet (BlockFace .entries.take(6 ))
5253
54+ @EventHandler(ignoreCancelled = true , priority = EventPriority .MONITOR )
55+ fun BlockBreakBlockEvent.onDropItem () {
56+ println (block.y)
57+ }
58+
5359 @EventHandler(ignoreCancelled = true , priority = EventPriority .MONITOR )
5460 fun BlockBreakEvent.syncBlockBreak () {
5561 sections.whenLinked(block) { linked ->
@@ -225,7 +231,7 @@ class SectionSyncListener(
225231 @EventHandler
226232 fun EntityChangeBlockEvent.syncBlockChange () {
227233 sections.whenLinked(block) { linked ->
228- linked.blockData = block .blockData
234+ linked.blockData = this .blockData
229235 }
230236 }
231237
0 commit comments