Skip to content

Commit

Permalink
[fix] fix #1063
Browse files Browse the repository at this point in the history
  • Loading branch information
kory33 committed Jul 22, 2021
1 parent 2842f2a commit ba97c92
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,11 @@ object BukkitResources {
E <: Entity
](spawnLocation: Location, tag: Class[E]): Resource[F, E] = {
Resource.make(
Sync[F].delay(spawnLocation.getWorld.spawn(spawnLocation, tag))
OnMinecraftServerThread[F].runAction[SyncIO, E] {
SyncIO {
spawnLocation.getWorld.spawn(spawnLocation, tag)
}
}
)(e =>
OnMinecraftServerThread[F].runAction[SyncIO, Unit] {
SyncIO {
Expand Down

0 comments on commit ba97c92

Please sign in to comment.