Should fix #1587
This commit is contained in:
parent
0ea442a993
commit
f251349189
1 changed files with 5 additions and 2 deletions
|
@ -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++) {
|
||||
|
|
Loading…
Reference in a new issue