Fixed encorrect particle locations

This commit is contained in:
Sollace 2019-01-26 19:27:47 +02:00
parent ca1d649b5d
commit e064517502

View file

@ -44,9 +44,9 @@ public interface ICaster<E extends EntityLivingBase> extends IOwned<E>, ILevelle
default void spawnParticles(IShape area, int count, Consumer<Vec3d> particleSpawner) {
Random rand = getWorld().rand;
int x = getOrigin().getX();
int y = getOrigin().getY();
int z = getOrigin().getZ();
double x = getEntity().posX;
double y = getEntity().posY;
double z = getEntity().posZ;
for (int i = 0; i < count; i++) {
particleSpawner.accept(area.computePoint(rand).add(x, y, z));