Adjust the default particle spawn radius to include the player's thicc

This commit is contained in:
Sollace 2019-02-12 16:34:21 +02:00
parent 38daa43291
commit 0d1f79bf71

View file

@ -46,7 +46,7 @@ public interface IPower<T extends IData> extends IKeyBind {
double halfDist = entity.getEyeHeight() / 1.5; double halfDist = entity.getEyeHeight() / 1.5;
double middle = entity.getEntityBoundingBox().minY + halfDist; double middle = entity.getEntityBoundingBox().minY + halfDist;
IShape shape = new Sphere(false, (float)halfDist); IShape shape = new Sphere(false, (float)halfDist + entity.width);
for (int i = 0; i < count; i++) { for (int i = 0; i < count; i++) {
Vec3d point = shape.computePoint(entity.getEntityWorld().rand); Vec3d point = shape.computePoint(entity.getEntityWorld().rand);