Class ServerPlayerEntityMixin_NoConnectionDeath

java.lang.Object
org.samo_lego.golfiv.mixin.duplication.ServerPlayerEntityMixin_NoConnectionDeath

public abstract class ServerPlayerEntityMixin_NoConnectionDeath extends Object
Checks whether player's connection is open before applying damage. Prevents duplication of items when player disconnects and dies right after data is saved. Thanks to @SpaceClouds42 for bringing this up :)
  • Constructor Details

    • ServerPlayerEntityMixin_NoConnectionDeath

      public ServerPlayerEntityMixin_NoConnectionDeath()
  • Method Details

    • isDisconnected

      public abstract boolean isDisconnected()