Skip to content

Commit 6311a6c

Browse files
committed
fix: disable syncing items between section drops for now
1 parent 105b537 commit 6311a6c

File tree

1 file changed

+6
-9
lines changed

1 file changed

+6
-9
lines changed

src/main/kotlin/com/mineinabyss/deeperworld/synchronization/SectionSyncListener.kt

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,21 @@
11
package com.mineinabyss.deeperworld.synchronization
22

3-
import com.destroystokyo.paper.event.entity.EntityRemoveFromWorldEvent
43
import com.github.shynixn.mccoroutine.bukkit.launch
54
import com.mineinabyss.deeperworld.deeperWorld
65
import com.mineinabyss.deeperworld.event.BlockSyncEvent
76
import com.mineinabyss.deeperworld.event.SyncType
87
import com.mineinabyss.deeperworld.world.section.correspondingLocation
98
import com.mineinabyss.deeperworld.world.section.inSectionOverlap
109
import com.mineinabyss.idofront.events.call
11-
import com.mineinabyss.idofront.plugin.Plugins
12-
import com.mineinabyss.idofront.spawning.spawn
1310
import com.mineinabyss.idofront.time.ticks
1411
import kotlinx.coroutines.delay
15-
import kotlinx.coroutines.future.await
1612
import net.kyori.adventure.text.Component
17-
import nl.rutgerkok.blocklocker.SearchMode
1813
import org.bukkit.Material
1914
import org.bukkit.Tag
20-
import org.bukkit.block.*
15+
import org.bukkit.block.BlockFace
16+
import org.bukkit.block.Container
17+
import org.bukkit.block.ShulkerBox
18+
import org.bukkit.block.Sign
2119
import org.bukkit.block.data.Ageable
2220
import org.bukkit.block.data.Bisected
2321
import org.bukkit.block.data.Waterlogged
@@ -27,7 +25,6 @@ import org.bukkit.block.data.type.Stairs
2725
import org.bukkit.block.data.type.TrapDoor
2826
import org.bukkit.block.sign.Side
2927
import org.bukkit.entity.EntityType
30-
import org.bukkit.entity.Item
3128
import org.bukkit.event.EventHandler
3229
import org.bukkit.event.EventPriority
3330
import org.bukkit.event.Listener
@@ -40,7 +37,6 @@ import org.bukkit.event.player.PlayerBucketFillEvent
4037
import org.bukkit.event.player.PlayerInteractEvent
4138
import org.bukkit.event.world.StructureGrowEvent
4239
import org.bukkit.inventory.EquipmentSlot
43-
import kotlin.time.Duration.Companion.seconds
4440

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

244+
/*
248245
/** Sync items removed by void to corresponding section */
249246
@EventHandler
250247
fun EntityRemoveFromWorldEvent.onVoidRemoval() {
@@ -264,5 +261,5 @@ object SectionSyncListener : Listener {
264261
chunk.removePluginChunkTicket(deeperWorld.plugin)
265262
}
266263
}
267-
}
264+
}*/
268265
}

0 commit comments

Comments
 (0)