From ce1ad103980f96655a7233b0ecdd188f292ecee9 Mon Sep 17 00:00:00 2001 From: Ellpeck Date: Tue, 27 Dec 2016 21:43:00 +0100 Subject: [PATCH] Made item particles a little faster --- .../ellpeck/actuallyadditions/mod/network/PacketHandler.java | 2 +- .../actuallyadditions/mod/particle/ParticleLaserItem.java | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/de/ellpeck/actuallyadditions/mod/network/PacketHandler.java b/src/main/java/de/ellpeck/actuallyadditions/mod/network/PacketHandler.java index 05f455b44..ca9f93384 100644 --- a/src/main/java/de/ellpeck/actuallyadditions/mod/network/PacketHandler.java +++ b/src/main/java/de/ellpeck/actuallyadditions/mod/network/PacketHandler.java @@ -69,7 +69,7 @@ public final class PacketHandler{ ItemStack stack = new ItemStack(compound); double inX = compound.getDouble("InX")+0.5; - double inY = compound.getDouble("InY")+0.925; + double inY = compound.getDouble("InY")+0.78; double inZ = compound.getDouble("InZ")+0.5; double outX = compound.getDouble("OutX")+0.5; diff --git a/src/main/java/de/ellpeck/actuallyadditions/mod/particle/ParticleLaserItem.java b/src/main/java/de/ellpeck/actuallyadditions/mod/particle/ParticleLaserItem.java index ccb7b3a58..620cdb28f 100644 --- a/src/main/java/de/ellpeck/actuallyadditions/mod/particle/ParticleLaserItem.java +++ b/src/main/java/de/ellpeck/actuallyadditions/mod/particle/ParticleLaserItem.java @@ -39,7 +39,7 @@ public class ParticleLaserItem extends Particle{ } public ParticleLaserItem(World world, double posX, double posY, double posZ, ItemStack stack, double motionY, double otherX, double otherY, double otherZ){ - super(world, posX+(world.rand.nextDouble()-0.5)/12, posY, posZ+(world.rand.nextDouble()-0.5)/12); + super(world, posX+(world.rand.nextDouble()-0.5)/8, posY, posZ+(world.rand.nextDouble()-0.5)/8); this.stack = stack; this.otherX = otherX; this.otherY = otherY; @@ -49,7 +49,7 @@ public class ParticleLaserItem extends Particle{ this.motionY = motionY; this.motionZ = 0; - this.particleMaxAge = 20; + this.particleMaxAge = 10; this.canCollide = false; }