diff --git a/.github/workflows/build-and-test.yml b/.github/workflows/build-and-test.yml index 3ee2f686..796502d7 100644 --- a/.github/workflows/build-and-test.yml +++ b/.github/workflows/build-and-test.yml @@ -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: diff --git a/src/main/java/com/brandon3055/draconicevolution/client/keybinding/KeyInputHandler.java b/src/main/java/com/brandon3055/draconicevolution/client/keybinding/KeyInputHandler.java index 5e86c914..5344a690 100644 --- a/src/main/java/com/brandon3055/draconicevolution/client/keybinding/KeyInputHandler.java +++ b/src/main/java/com/brandon3055/draconicevolution/client/keybinding/KeyInputHandler.java @@ -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); diff --git a/src/main/java/com/brandon3055/draconicevolution/common/tileentities/multiblocktiles/TileEnderResurrection.java b/src/main/java/com/brandon3055/draconicevolution/common/tileentities/multiblocktiles/TileEnderResurrection.java index da35c848..201a5dd1 100644 --- a/src/main/java/com/brandon3055/draconicevolution/common/tileentities/multiblocktiles/TileEnderResurrection.java +++ b/src/main/java/com/brandon3055/draconicevolution/common/tileentities/multiblocktiles/TileEnderResurrection.java @@ -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;