mirror of
https://github.com/Jozufozu/Flywheel.git
synced 2025-01-17 08:27:54 +01:00
Merge branch 'mc1.15/dev' into mc1.16/dev
This commit is contained in:
commit
877d6dc2ee
1 changed files with 3 additions and 0 deletions
|
@ -24,6 +24,7 @@ import net.minecraft.nbt.CompoundNBT;
|
||||||
import net.minecraft.util.DamageSource;
|
import net.minecraft.util.DamageSource;
|
||||||
import net.minecraft.util.LazyValue;
|
import net.minecraft.util.LazyValue;
|
||||||
import net.minecraft.util.math.AxisAlignedBB;
|
import net.minecraft.util.math.AxisAlignedBB;
|
||||||
|
import net.minecraft.util.math.BlockRayTraceResult;
|
||||||
import net.minecraft.util.math.EntityRayTraceResult;
|
import net.minecraft.util.math.EntityRayTraceResult;
|
||||||
import net.minecraft.util.math.RayTraceResult.Type;
|
import net.minecraft.util.math.RayTraceResult.Type;
|
||||||
import net.minecraft.util.math.vector.Vector3d;
|
import net.minecraft.util.math.vector.Vector3d;
|
||||||
|
@ -122,6 +123,8 @@ public class ExtendoGripItem extends Item {
|
||||||
return;
|
return;
|
||||||
if (!isHoldingExtendoGrip(player))
|
if (!isHoldingExtendoGrip(player))
|
||||||
return;
|
return;
|
||||||
|
if (mc.objectMouseOver instanceof BlockRayTraceResult && mc.objectMouseOver.getType() != Type.MISS)
|
||||||
|
return;
|
||||||
|
|
||||||
// Modified version of GameRenderer#getMouseOver
|
// Modified version of GameRenderer#getMouseOver
|
||||||
double d0 = player.getAttribute(ForgeMod.REACH_DISTANCE.get())
|
double d0 = player.getAttribute(ForgeMod.REACH_DISTANCE.get())
|
||||||
|
|
Loading…
Reference in a new issue