mirror of
https://github.com/GTNewHorizons/Botania.git
synced 2026-11-13 16:54:06 +00:00
Fixed the Terra Shatterer and Elementium Shovel having not working if the player's reach is above 4.5 (with the ring of far reach for example).
This commit is contained in:
1 parent
e6dd7e7692
commit
f948b8237e
2 files changed
+3
-2
No files matched your search
@@ -127,7 +127,7 @@ public class ItemTerraPick extends ItemManasteelPick implements IManaItem {
|
||||
if(!ToolCommons.isRightMaterial(mat, MATERIALS))
|
||||
return false;
|
||||
|
||||
MovingObjectPosition block = ToolCommons.raytraceFromEntity(world, player, true, 4.5);
|
||||
MovingObjectPosition block = ToolCommons.raytraceFromEntity(world, player, true, 10);
|
||||
if(block == null)
|
||||
return false;
|
||||
|
||||
|
||||
+2
-1
@@ -28,7 +28,8 @@ public class ItemElementiumShovel extends ItemManasteelShovel {
|
||||
Material mat = world.getBlock(x, y, z).getMaterial();
|
||||
if (!ToolCommons.isRightMaterial(mat, materialsShovel))
|
||||
return false;
|
||||
MovingObjectPosition block = ToolCommons.raytraceFromEntity(world, player, true, 4.5);
|
||||
|
||||
MovingObjectPosition block = ToolCommons.raytraceFromEntity(world, player, true, 10);
|
||||
if (block == null)
|
||||
return false;
|
||||
|
||||
|
||||
Reference in new issue
Block a user