Skip to content

Commit 2763dee

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

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ fun teleportToHome(player: ServerPlayerEntity, home: HomeConfigurationModel.User
3434
DistExecutor.runWhenOn(Dist.CLIENT) {
3535
Runnable {
3636
for (i in 0..200) {
37-
Minecraft.getInstance().world.addParticle(
37+
Minecraft.getInstance().world?.addParticle(
3838
ParticleTypes.PORTAL,
3939
player.positionVec.x + (random.nextDouble() - 0.5) * player.width.toDouble(),
4040
player.positionVec.y + random.nextDouble() * player.height.toDouble() - 0.25,

0 commit comments

Comments
 (0)