mirror of
https://github.com/Sollace/Unicopia.git
synced 2025-02-20 03:44: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) {
|
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));
|
||||||
|
|
Loading…
Reference in a new issue