Merge branch 'master' into nightvision-toggle

This commit is contained in:
M R S E authored and GitHub committed 2026-11-21 21:08:58 +01:00
commit 5fa80a4ddc
3 files changed
+6 -3

No files matched your search

+2 -2
View File
@@ -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:
@@ -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);
@@ -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;