Skip to content

Commit dcd4482

Browse files
committed
GlobalScope.kt compatibility with 1.15.2 added.
Signed-off-by: Pavel Erokhin (MairwunNx) <[email protected]>
1 parent 307534f commit dcd4482

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/kotlin/com/mairwunnx/projectessentials/warps/GlobalScope.kt

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ fun teleportToWarp(player: ServerPlayerEntity, warp: WarpsConfigurationModel.War
3838
DistExecutor.runWhenOn(Dist.CLIENT) {
3939
Runnable {
4040
for (i in 0..200) {
41-
Minecraft.getInstance().world.addParticle(
41+
Minecraft.getInstance().world?.addParticle(
4242
ParticleTypes.PORTAL,
4343
player.positionVec.x + (random.nextDouble() - 0.5) * player.width.toDouble(),
4444
player.positionVec.y + random.nextDouble() * player.height.toDouble() - 0.25,

0 commit comments

Comments
 (0)