From a400ee46a9263bd0a30804068cdc7a278f950e1d Mon Sep 17 00:00:00 2001
From: MCTian-mi <35869948+MCTian-mi@users.noreply.github.com>
Date: Sun, 6 Oct 2024 23:00:31 +0800
Subject: [PATCH] fix drop pad re-appear when you switch to survival mode

---
 src/main/java/supersymmetry/common/EventHandlers.java | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/src/main/java/supersymmetry/common/EventHandlers.java b/src/main/java/supersymmetry/common/EventHandlers.java
index 5476c8583..c40aca4a3 100644
--- a/src/main/java/supersymmetry/common/EventHandlers.java
+++ b/src/main/java/supersymmetry/common/EventHandlers.java
@@ -53,8 +53,6 @@ public class EventHandlers {
     @SubscribeEvent
     public static void onPlayerLoggedIn(PlayerEvent.PlayerLoggedInEvent event) {
 
-        if (event.player.isCreative()) return;
-
         NBTTagCompound playerData = event.player.getEntityData();
         NBTTagCompound data = playerData.hasKey(EntityPlayer.PERSISTED_NBT_TAG) ? playerData.getCompoundTag(EntityPlayer.PERSISTED_NBT_TAG) : new NBTTagCompound();
 
@@ -62,6 +60,7 @@ public static void onPlayerLoggedIn(PlayerEvent.PlayerLoggedInEvent event) {
 
             data.setBoolean(FIRST_SPAWN, true);
             playerData.setTag(EntityPlayer.PERSISTED_NBT_TAG, data);
+            if (event.player.isCreative()) return;
 
             EntityDropPod dropPod = new EntityDropPod(event.player.getEntityWorld(), event.player.posX, event.player.posY + 256, event.player.posZ);