Skip to content

Commit

Permalink
fix: disable syncing items between section drops for now
Browse files Browse the repository at this point in the history
  • Loading branch information
Boy0000 committed Jan 4, 2025
1 parent 105b537 commit 6311a6c
Showing 1 changed file with 6 additions and 9 deletions.
Original file line number Diff line number Diff line change
@@ -1,23 +1,21 @@
package com.mineinabyss.deeperworld.synchronization

import com.destroystokyo.paper.event.entity.EntityRemoveFromWorldEvent
import com.github.shynixn.mccoroutine.bukkit.launch
import com.mineinabyss.deeperworld.deeperWorld
import com.mineinabyss.deeperworld.event.BlockSyncEvent
import com.mineinabyss.deeperworld.event.SyncType
import com.mineinabyss.deeperworld.world.section.correspondingLocation
import com.mineinabyss.deeperworld.world.section.inSectionOverlap
import com.mineinabyss.idofront.events.call
import com.mineinabyss.idofront.plugin.Plugins
import com.mineinabyss.idofront.spawning.spawn
import com.mineinabyss.idofront.time.ticks
import kotlinx.coroutines.delay
import kotlinx.coroutines.future.await
import net.kyori.adventure.text.Component
import nl.rutgerkok.blocklocker.SearchMode
import org.bukkit.Material
import org.bukkit.Tag
import org.bukkit.block.*
import org.bukkit.block.BlockFace
import org.bukkit.block.Container
import org.bukkit.block.ShulkerBox
import org.bukkit.block.Sign
import org.bukkit.block.data.Ageable
import org.bukkit.block.data.Bisected
import org.bukkit.block.data.Waterlogged
Expand All @@ -27,7 +25,6 @@ import org.bukkit.block.data.type.Stairs
import org.bukkit.block.data.type.TrapDoor
import org.bukkit.block.sign.Side
import org.bukkit.entity.EntityType
import org.bukkit.entity.Item
import org.bukkit.event.EventHandler
import org.bukkit.event.EventPriority
import org.bukkit.event.Listener
Expand All @@ -40,7 +37,6 @@ import org.bukkit.event.player.PlayerBucketFillEvent
import org.bukkit.event.player.PlayerInteractEvent
import org.bukkit.event.world.StructureGrowEvent
import org.bukkit.inventory.EquipmentSlot
import kotlin.time.Duration.Companion.seconds

/**
* Synchronizes the overlap between sections
Expand Down Expand Up @@ -245,6 +241,7 @@ object SectionSyncListener : Listener {
entity.world.getNearbyEntitiesByType(entityType.entityClass, corrLocation, 1.0).firstOrNull()?.remove()
}

/*
/** Sync items removed by void to corresponding section */
@EventHandler
fun EntityRemoveFromWorldEvent.onVoidRemoval() {
Expand All @@ -264,5 +261,5 @@ object SectionSyncListener : Listener {
chunk.removePluginChunkTicket(deeperWorld.plugin)
}
}
}
}*/
}

0 comments on commit 6311a6c

Please sign in to comment.