This commit is contained in:
Modmuss50 2018-08-24 21:07:38 +01:00
parent 0ea442a993
commit f251349189
No known key found for this signature in database
GPG key ID: 773D17BE8BF49C82

View file

@ -43,11 +43,11 @@ import reborncore.common.powerSystem.forge.ForgePowerItemManager;
import techreborn.config.ConfigTechReborn;
import techreborn.init.ModItems;
import javax.annotation.Nullable;
import java.util.Collections;
import java.util.HashSet;
import java.util.Set;
import javax.annotation.Nullable;
public class ItemAdvancedDrill extends ItemDrill {
public ItemAdvancedDrill() {
@ -62,6 +62,9 @@ public class ItemAdvancedDrill extends ItemDrill {
return new HashSet<BlockPos>();
}
RayTraceResult raytrace = rayTrace(worldIn, playerIn, false);
if(raytrace == null || raytrace.sideHit == null){
return Collections.emptySet();
}
EnumFacing enumfacing = raytrace.sideHit;
if (enumfacing == EnumFacing.SOUTH || enumfacing == EnumFacing.NORTH) {
for (int i = -1; i < 2; i++) {