mirror of
https://github.com/GTNewHorizons/Draconic-Evolution.git
synced 2026-11-25 14:34:47 +00:00
Merge branch 'master' into nightvision-toggle
This commit is contained in:
3 files changed
+6
-3
No files matched your search
@@ -3,9 +3,9 @@ name: Build and test
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
branches: [ master, main ]
|
||||
branches: [ master, main, release/** ]
|
||||
push:
|
||||
branches: [ master, main ]
|
||||
branches: [ master, main, release/** ]
|
||||
|
||||
jobs:
|
||||
build-and-test:
|
||||
|
||||
+3
-1
@@ -32,6 +32,7 @@ import com.brandon3055.draconicevolution.common.utils.ItemNBTHelper;
|
||||
import com.brandon3055.draconicevolution.integration.ModHelper;
|
||||
|
||||
import cpw.mods.fml.client.registry.ClientRegistry;
|
||||
import cpw.mods.fml.common.Loader;
|
||||
import cpw.mods.fml.common.eventhandler.SubscribeEvent;
|
||||
import cpw.mods.fml.common.gameevent.InputEvent;
|
||||
import cpw.mods.fml.relauncher.Side;
|
||||
@@ -43,6 +44,7 @@ import cpw.mods.fml.relauncher.SideOnly;
|
||||
@SideOnly(Side.CLIENT)
|
||||
public final class KeyInputHandler {
|
||||
|
||||
public static boolean inNH = Loader.isModLoaded("dreamcraft");
|
||||
private final KeyBinding placeItem;
|
||||
private final KeyBinding toolConfig;
|
||||
private final KeyBinding toolProfileChange;
|
||||
@@ -52,7 +54,7 @@ public final class KeyInputHandler {
|
||||
private final KeyBinding toggleNightVision;
|
||||
|
||||
public KeyInputHandler() {
|
||||
placeItem = new KeyBinding("key.placeItem", Keyboard.KEY_V, References.MODNAME);
|
||||
placeItem = new KeyBinding("key.placeItem", inNH ? Keyboard.KEY_NONE : Keyboard.KEY_V, References.MODNAME);
|
||||
toolConfig = new KeyBinding("key.toolConfig", Keyboard.KEY_NONE, References.MODNAME);
|
||||
toolProfileChange = new KeyBinding("key.toolProfileChange", Keyboard.KEY_NONE, References.MODNAME);
|
||||
toggleFlight = new KeyBinding("key.toggleFlight", Keyboard.KEY_NONE, References.MODNAME);
|
||||
|
||||
+1
@@ -114,6 +114,7 @@ public class TileEnderResurrection extends TileEntity {
|
||||
EntityLightningBolt bolt = new EntityLightningBolt(worldObj, x, worldObj.getTopSolidOrLiquidBlock(z, z) - 1, z);
|
||||
if (!worldObj.isRemote) worldObj.addWeatherEffect(bolt);
|
||||
EntityPlayer p = worldObj.getClosestPlayer(xCoord, yCoord, zCoord, 100);
|
||||
if (p == null) return;
|
||||
float yaw = p.rotationYaw;
|
||||
float pitch = p.rotationPitch;
|
||||
float mod = 0.1F;
|
||||
|
||||
Reference in new issue
Block a user