mirror of
https://github.com/GTNewHorizons/Botania.git
synced 2026-11-27 15:33:08 +00:00
Spark mana particles no longer collide, closes #3033
This commit is contained in:
1 parent
1eb2885d6e
commit
bb8563cd7a
4 files changed
+23
-13
No files matched your search
@@ -37,7 +37,7 @@ public class FXWisp extends Particle {
|
||||
private final int moteHalfLife;
|
||||
|
||||
public FXWisp(World world, double d, double d1, double d2, double xSpeed, double ySpeed, double zSpeed,
|
||||
float size, float red, float green, float blue, boolean depthTest, float maxAgeMul) {
|
||||
float size, float red, float green, float blue, boolean depthTest, float maxAgeMul, boolean noClip) {
|
||||
super(world, d, d1, d2, 0, 0, 0);
|
||||
// super applies wiggle to motion so set it here instead
|
||||
motionX = xSpeed;
|
||||
@@ -58,6 +58,7 @@ public class FXWisp extends Particle {
|
||||
prevPosX = posX;
|
||||
prevPosY = posY;
|
||||
prevPosZ = posZ;
|
||||
this.canCollide = !noClip;
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -110,12 +111,6 @@ public class FXWisp extends Particle {
|
||||
particleGravity = value;
|
||||
}
|
||||
|
||||
public void setSpeed(float mx, float my, float mz) {
|
||||
motionX = mx;
|
||||
motionY = my;
|
||||
motionZ = mz;
|
||||
}
|
||||
|
||||
private static void beginRenderCommon(BufferBuilder bufferBuilder, TextureManager textureManager) {
|
||||
GL11.glPushAttrib(GL11.GL_LIGHTING_BIT);
|
||||
GlStateManager.depthMask(false);
|
||||
|
||||
Reference in new issue
Block a user