Fix crash when codechicken lib isn't installed. #releaseBuild

This commit is contained in:
modmuss50 2018-01-19 11:19:53 +00:00
parent ceefa8423a
commit e0eb725878
2 changed files with 2 additions and 3 deletions

View file

@ -85,7 +85,7 @@ configurations {
compile.extendsFrom shade
}
version = "2.12.0"
version = "2.12.1"
def ENV = System.getenv()
if (ENV.BUILD_NUMBER) {

View file

@ -24,7 +24,6 @@
package techreborn.items.tools;
import codechicken.lib.raytracer.RayTracer;
import net.minecraft.block.Block;
import net.minecraft.block.state.IBlockState;
import net.minecraft.creativetab.CreativeTabs;
@ -81,7 +80,7 @@ public class ItemAdvancedDrill extends ItemDrill {
public boolean onBlockDestroyed(ItemStack stack, World worldIn, IBlockState blockIn, BlockPos pos, EntityLivingBase entityLiving) {
if(!(entityLiving instanceof EntityPlayer))
return false;
RayTraceResult raytrace= RayTracer.retrace((EntityPlayer) entityLiving);
RayTraceResult raytrace= rayTrace(worldIn, (EntityPlayer) entityLiving, false);
if(raytrace==null)
return false;
EnumFacing enumfacing = raytrace.sideHit;