mirror of
https://github.com/Thorfusion/Mekanism-Community-Edition.git
synced 2026-11-23 21:39:40 +00:00
Added configurable portable teleport delay
This commit is contained in:
1 parent
bacd97f44a
commit
b0dd7a10e7
6 files changed
+63
-2
No files matched your search
@@ -7,6 +7,7 @@ import java.util.UUID;
|
||||
|
||||
import mekanism.api.Coord4D;
|
||||
import mekanism.api.EnumColor;
|
||||
import mekanism.client.ClientTickHandler;
|
||||
import mekanism.client.MekanismClient;
|
||||
import mekanism.client.gui.element.GuiPowerBar;
|
||||
import mekanism.client.gui.element.GuiPowerBar.IPowerInfoHandler;
|
||||
@@ -406,7 +407,7 @@ public class GuiTeleporter extends GuiMekanism
|
||||
if(clientFreq != null && clientStatus == 1)
|
||||
{
|
||||
mc.setIngameFocus();
|
||||
Mekanism.packetHandler.sendToServer(new PortableTeleporterMessage(PortableTeleporterPacketType.TELEPORT, currentHand, clientFreq));
|
||||
ClientTickHandler.portableTeleport(entityPlayer, currentHand, clientFreq);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user