Skip to content

Commit

Permalink
Remove unnecessary synchronization in TileEntityManager
Browse files Browse the repository at this point in the history
  • Loading branch information
NichtStudioCode committed Jan 12, 2023
1 parent 4d1e945 commit 2db9e54
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import xyz.xenondevs.nova.data.world.block.state.NovaTileEntityState
import xyz.xenondevs.nova.initialize.Initializable
import xyz.xenondevs.nova.initialize.InitializationStage
import xyz.xenondevs.nova.integration.customitems.CustomItemServiceManager
import xyz.xenondevs.nova.util.runAsyncTaskTimerSynchronized
import xyz.xenondevs.nova.util.runAsyncTaskTimer
import xyz.xenondevs.nova.util.runTaskTimer
import xyz.xenondevs.nova.world.BlockPos
import xyz.xenondevs.nova.world.ChunkPos
Expand Down Expand Up @@ -44,7 +44,7 @@ object TileEntityManager : Initializable(), ITileEntityManager {
}

runTaskTimer(0, 1) { handleTick(TileEntity::handleTick) }
runAsyncTaskTimerSynchronized(this, 0, 1) { handleTick(TileEntity::handleAsyncTick) }
runAsyncTaskTimer(0, 1) { handleTick(TileEntity::handleAsyncTick) }
}

@Synchronized
Expand Down

0 comments on commit 2db9e54

Please sign in to comment.