mirror of
https://github.com/GTNewHorizons/Draconic-Evolution.git
synced 2026-11-27 23:45:59 +00:00
Consume 64 ender pearls at once (#36)
* Consume 64 ender pearls at once * Blue Da Ba Dee
This commit is contained in:
1 parent
7286d30c26
commit
e96dc8d558
1 file changed
+6
-3
@@ -29,12 +29,14 @@ import com.brandon3055.draconicevolution.common.handler.ConfigHandler;
|
||||
import com.brandon3055.draconicevolution.common.lib.References;
|
||||
import com.brandon3055.draconicevolution.common.network.TeleporterPacket;
|
||||
|
||||
import cpw.mods.fml.common.Loader;
|
||||
import cpw.mods.fml.relauncher.Side;
|
||||
import cpw.mods.fml.relauncher.SideOnly;
|
||||
|
||||
@SideOnly(Side.CLIENT)
|
||||
public class GUITeleporter extends GuiScreen {
|
||||
|
||||
private static final int PEARLS_WITH_SHIFT = Loader.isModLoaded("dreamcraft") ? 64 : 16;
|
||||
private final int xSize = 182;
|
||||
private final int ySize = 141;
|
||||
private ResourceLocation guiTexture = new ResourceLocation(
|
||||
@@ -533,9 +535,10 @@ public class GUITeleporter extends GuiScreen {
|
||||
if ((!Keyboard.isKeyDown(42)) && (!Keyboard.isKeyDown(54))) {
|
||||
DraconicEvolution.network.sendToServer(new TeleporterPacket(TeleporterPacket.ADDFUEL, 1, false));
|
||||
this.fuel += ConfigHandler.teleporterUsesPerPearl;
|
||||
} else if (hasPearls(16)) {
|
||||
DraconicEvolution.network.sendToServer(new TeleporterPacket(TeleporterPacket.ADDFUEL, 16, false));
|
||||
this.fuel += ConfigHandler.teleporterUsesPerPearl * 16;
|
||||
} else if (hasPearls(PEARLS_WITH_SHIFT)) {
|
||||
DraconicEvolution.network
|
||||
.sendToServer(new TeleporterPacket(TeleporterPacket.ADDFUEL, PEARLS_WITH_SHIFT, false));
|
||||
this.fuel += ConfigHandler.teleporterUsesPerPearl * PEARLS_WITH_SHIFT;
|
||||
} else player.addChatMessage(new ChatComponentTranslation("msg.teleporterOutOfPearls.txt"));
|
||||
} else player.addChatMessage(new ChatComponentTranslation("msg.teleporterOutOfPearls.txt"));
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user