mirror of
https://github.com/Thorfusion/Mekanism-Community-Edition.git
synced 2026-11-21 20:42:17 +00:00
Small laser refinements:
* Allow slightly larger render size. * Stop breaking blocks *just* at the end of the laser. * Reduce default range to 64 blocks.
This commit is contained in:
1 parent
944e288f89
commit
4ada1ff8b7
3 files changed
+4
-4
No files matched your search
@@ -28,7 +28,7 @@ public class EntityLaser extends EntityFX
|
||||
particleGreen = 0;
|
||||
particleBlue = 0;
|
||||
particleAlpha = 0.1F;
|
||||
particleScale = (float) Math.min(energy / 50000, 0.5);
|
||||
particleScale = (float) Math.min(energy / 50000, 0.6);
|
||||
length = end.distance(start);
|
||||
direction = dir;
|
||||
}
|
||||
|
||||
@@ -241,7 +241,7 @@ public class CommonProxy
|
||||
general.TO_TE = general.TO_BC*10;
|
||||
general.FROM_TE = general.FROM_BC/10;
|
||||
|
||||
general.laserRange = Mekanism.configuration.get("general", "LaserRange", 100).getInt(100);
|
||||
general.laserRange = Mekanism.configuration.get("general", "LaserRange", 64).getInt(64);
|
||||
general.laserEnergyNeededPerHardness = Mekanism.configuration.get("general", "LaserDiggingEnergy", 100000).getInt(100000);
|
||||
|
||||
usage.enrichmentChamberUsage = Mekanism.configuration.get("usage", "EnrichmentChamberUsage", 50D).getDouble(50D);
|
||||
|
||||
@@ -25,7 +25,7 @@ public class LaserManager
|
||||
|
||||
public static MovingObjectPosition fireLaser(Pos3D from, ForgeDirection direction, double energy, World world)
|
||||
{
|
||||
Pos3D to = from.clone().translate(direction, general.laserRange);
|
||||
Pos3D to = from.clone().translate(direction, general.laserRange - 0.002);
|
||||
|
||||
MovingObjectPosition mop = world.rayTraceBlocks(Vec3.createVectorHelper(from.xPos, from.yPos, from.zPos), Vec3.createVectorHelper(to.xPos, to.yPos, to.zPos));
|
||||
|
||||
@@ -80,7 +80,7 @@ public class LaserManager
|
||||
|
||||
public static void fireLaserClient(Pos3D from, ForgeDirection direction, double energy, World world)
|
||||
{
|
||||
Pos3D to = from.clone().translate(direction, general.laserRange);
|
||||
Pos3D to = from.clone().translate(direction, general.laserRange - 0.002);
|
||||
MovingObjectPosition mop = world.rayTraceBlocks(Vec3.createVectorHelper(from.xPos, from.yPos, from.zPos), Vec3.createVectorHelper(to.xPos, to.yPos, to.zPos));
|
||||
|
||||
if(mop != null)
|
||||
|
||||
Reference in new issue
Block a user