Skip to content

Commit

Permalink
Fix any travel teleport cause player disconnect on dedicated server (#81
Browse files Browse the repository at this point in the history
)
  • Loading branch information
xchgeax authored Aug 5, 2022
1 parent eb4401f commit 2dce487
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
package crazypants.enderio.api.teleport;

import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
import crazypants.enderio.EnderIO;
import crazypants.enderio.config.Config;
import crazypants.enderio.teleport.TravelController;
Expand Down Expand Up @@ -41,6 +43,7 @@ public static int getMaxDistance() {
return STAFF.getMaxDistanceTravelledSq();
}

@SideOnly(Side.CLIENT)
public static int getMaxDistanceSq() {
EntityPlayer player = Minecraft.getMinecraft().thePlayer;

Expand Down

0 comments on commit 2dce487

Please sign in to comment.