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) { default void spawnParticles(IShape area, int count, Consumer<Vec3d> particleSpawner) {
Random rand = getWorld().rand; Random rand = getWorld().rand;
int x = getOrigin().getX(); double x = getEntity().posX;
int y = getOrigin().getY(); double y = getEntity().posY;
int z = getOrigin().getZ(); double z = getEntity().posZ;
for (int i = 0; i < count; i++) { for (int i = 0; i < count; i++) {
particleSpawner.accept(area.computePoint(rand).add(x, y, z)); particleSpawner.accept(area.computePoint(rand).add(x, y, z));