Fix crash when codechicken lib isn't installed. #releaseBuild
This commit is contained in:
parent
ceefa8423a
commit
e0eb725878
2 changed files with 2 additions and 3 deletions
|
@ -85,7 +85,7 @@ configurations {
|
|||
compile.extendsFrom shade
|
||||
}
|
||||
|
||||
version = "2.12.0"
|
||||
version = "2.12.1"
|
||||
|
||||
def ENV = System.getenv()
|
||||
if (ENV.BUILD_NUMBER) {
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue