mirror of
https://github.com/Sollace/Unicopia.git
synced 2025-02-17 10:24:23 +01:00
Fixed encorrect particle locations
This commit is contained in:
parent
ca1d649b5d
commit
e064517502
1 changed files with 3 additions and 3 deletions
|
@ -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));
|
||||
|
|
Loading…
Reference in a new issue