Skip to content

Commit

Permalink
Merge pull request #312 from MCTian-mi/no-drop-pad-for-creative
Browse files Browse the repository at this point in the history
Stop drop pad spawning for creative players
  • Loading branch information
bruberu authored Sep 16, 2024
2 parents af1e5a0 + b6af5b1 commit d9364f7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/main/java/supersymmetry/common/EventHandlers.java
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,8 @@ 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();

Expand Down

0 comments on commit d9364f7

Please sign in to comment.