From 65e375f0f97c076c47cef0ce68e21d52e431cbb6 Mon Sep 17 00:00:00 2001 From: Golem Date: Sun, 31 Jul 2022 21:01:03 +0200 Subject: [PATCH] Door Lock Crash Fix --- build.gradle | 4 ++-- src/main/java/com/hbm/lib/RefStrings.java | 2 +- src/main/java/com/hbm/tileentity/TileEntityDoorGeneric.java | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/build.gradle b/build.gradle index 2b79dde306..2e73dafe3d 100644 --- a/build.gradle +++ b/build.gradle @@ -10,8 +10,8 @@ apply plugin: 'net.minecraftforge.gradle.forge' //Only edit below this line, the above code adds and enables the necessary things for Forge to be setup. -version = "1.6.8.4" -version = "1.6.8a-Gv4" +version = "1.6.8.5" +version = "1.6.8a-Gv5" group = "com.hbm" // http://maven.apache.org/guides/mini/guide-naming-conventions.html archivesBaseName = "hbm" diff --git a/src/main/java/com/hbm/lib/RefStrings.java b/src/main/java/com/hbm/lib/RefStrings.java index 7fa60d40e7..8d23ef2c0b 100644 --- a/src/main/java/com/hbm/lib/RefStrings.java +++ b/src/main/java/com/hbm/lib/RefStrings.java @@ -3,7 +3,7 @@ public class RefStrings { public static final String MODID = "hbm"; public static final String NAME = "Hbm's Nuclear Tech Mod"; - public static final String VERSION = "hbm-1.6.8Av4-1.12.2"; + public static final String VERSION = "hbm-1.6.8Av5-1.12.2"; //HBM's Beta Naming Convention: //V T (X) //V -> next release version diff --git a/src/main/java/com/hbm/tileentity/TileEntityDoorGeneric.java b/src/main/java/com/hbm/tileentity/TileEntityDoorGeneric.java index c19d1a100e..ff6788c7aa 100644 --- a/src/main/java/com/hbm/tileentity/TileEntityDoorGeneric.java +++ b/src/main/java/com/hbm/tileentity/TileEntityDoorGeneric.java @@ -177,7 +177,7 @@ public boolean canLock(EntityPlayer player, EnumHand hand, EnumFacing facing) { player.sendMessage(new TextComponentString("Cannot lock while redstone powered")); return false; } else { - return canLock(player, hand, facing); + return true; } }