mirror of
https://github.com/GTNewHorizons/Botania.git
synced 2026-11-21 12:42:50 +00:00
Fix particles 'snapping into place', a vanilla bug. Closes #2217
This commit is contained in:
1 parent
4f4971ca73
commit
34280c942b
2 files changed
+14
No files matched your search
@@ -160,6 +160,13 @@ public class FXSparkle extends Particle {
|
||||
setExpired();
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void setSize(float width, float height) {
|
||||
super.setSize(width, height);
|
||||
// fix MC-12269: the bb is expanded only in +X +Z directions by super, call setPosition again to recalculate a correct BB
|
||||
setPosition(posX, posY, posZ);
|
||||
}
|
||||
|
||||
public void setGravity(float value) {
|
||||
particleGravity = value;
|
||||
}
|
||||
|
||||
@@ -158,6 +158,13 @@ public class FXWisp extends Particle {
|
||||
this.motionZ *= 0.9800000190734863D;
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void setSize(float width, float height) {
|
||||
super.setSize(width, height);
|
||||
// fix MC-12269: the bb is expanded only in +X +Z directions by super, call setPosition again to recalculate a correct BB
|
||||
setPosition(posX, posY, posZ);
|
||||
}
|
||||
|
||||
public void setGravity(float value) {
|
||||
particleGravity = value;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user