Skip to content

Commit

Permalink
fix eden custom spawns
Browse files Browse the repository at this point in the history
  • Loading branch information
Gutin1 committed Jan 22, 2025
1 parent fe219a6 commit baaca64
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ import net.horizonsend.ion.server.miscellaneous.utils.mainThreadCheck
import org.bukkit.World
import org.bukkit.entity.Player
import org.bukkit.event.EventHandler
import org.bukkit.event.entity.CreatureSpawnEvent
import org.bukkit.event.world.WorldInitEvent
import org.bukkit.event.world.WorldSaveEvent
import org.bukkit.event.world.WorldUnloadEvent
Expand Down Expand Up @@ -124,6 +125,11 @@ class IonWorld private constructor(
}
}

@EventHandler
fun onMobSpawn(event: CreatureSpawnEvent) {
event.location.world.ion.customMonSpawner.handleSpawnEvent(event)
}

@EventHandler
fun onWorldSave(event: WorldSaveEvent) {
// TODO
Expand Down

0 comments on commit baaca64

Please sign in to comment.