mirror of
https://github.com/Thorfusion/Mekanism-Community-Edition.git
synced 2026-11-27 23:33:08 +00:00
Of course, the issue isn't on Minecraft's end, it has to do with Coord4D hashing. Coord4D no longer extends BlockPos to prevent hash issues
This commit is contained in:
1 parent
c6f3c162f9
commit
ddfe83c495
70 files changed
+458
-1032
No files matched your search
@@ -76,7 +76,7 @@ public class TileEntityLaserAmplifier extends TileEntityContainerBlock implement
|
||||
if(on)
|
||||
{
|
||||
MovingObjectPosition mop = LaserManager.fireLaserClient(this, facing, lastFired, worldObj);
|
||||
Coord4D hitCoord = mop == null ? null : new Coord4D(mop);
|
||||
Coord4D hitCoord = mop == null ? null : new Coord4D(mop, worldObj);
|
||||
|
||||
if(hitCoord == null || !hitCoord.equals(digging))
|
||||
{
|
||||
@@ -88,7 +88,7 @@ public class TileEntityLaserAmplifier extends TileEntityContainerBlock implement
|
||||
{
|
||||
Block blockHit = hitCoord.getBlock(worldObj);
|
||||
TileEntity tileHit = hitCoord.getTileEntity(worldObj);
|
||||
float hardness = blockHit.getBlockHardness(worldObj, hitCoord);
|
||||
float hardness = blockHit.getBlockHardness(worldObj, hitCoord.getPos());
|
||||
|
||||
if(!(hardness < 0 || (tileHit instanceof ILaserReceptor && !((ILaserReceptor)tileHit).canLasersDig())))
|
||||
{
|
||||
@@ -128,7 +128,7 @@ public class TileEntityLaserAmplifier extends TileEntityContainerBlock implement
|
||||
}
|
||||
|
||||
LaserInfo info = LaserManager.fireLaser(this, facing, firing, worldObj);
|
||||
Coord4D hitCoord = info.movingPos == null ? null : new Coord4D(info.movingPos);
|
||||
Coord4D hitCoord = info.movingPos == null ? null : new Coord4D(info.movingPos, worldObj);
|
||||
|
||||
if(hitCoord == null || !hitCoord.equals(digging))
|
||||
{
|
||||
@@ -140,7 +140,7 @@ public class TileEntityLaserAmplifier extends TileEntityContainerBlock implement
|
||||
{
|
||||
Block blockHit = hitCoord.getBlock(worldObj);
|
||||
TileEntity tileHit = hitCoord.getTileEntity(worldObj);
|
||||
float hardness = blockHit.getBlockHardness(worldObj, hitCoord);
|
||||
float hardness = blockHit.getBlockHardness(worldObj, hitCoord.getPos());
|
||||
|
||||
if(!(hardness < 0 || (tileHit instanceof ILaserReceptor && !((ILaserReceptor)tileHit).canLasersDig())))
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user