mirror of
https://github.com/GTNewHorizons/EnderIO.git
synced 2026-10-25 20:22:23 +00:00
Fix any travel teleport cause player disconnect on dedicated server (#81)
This commit is contained in:
1 parent
eb4401f755
commit
2dce4873b7
1 file changed
+3
@@ -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;
|
||||
@@ -41,6 +43,7 @@ public enum TravelSource {
|
||||
return STAFF.getMaxDistanceTravelledSq();
|
||||
}
|
||||
|
||||
@SideOnly(Side.CLIENT)
|
||||
public static int getMaxDistanceSq() {
|
||||
EntityPlayer player = Minecraft.getMinecraft().thePlayer;
|
||||
|
||||
|
||||
Reference in new issue
Block a user