mirror of
https://github.com/GTNewHorizons/Botania.git
synced 2026-11-20 20:22:33 +00:00
Fixed bursts with the gravity lens having different arcs in prevision and reality.
This commit is contained in:
1 parent
4da0a6ca89
commit
093c0cd0e0
1 file changed
+2
-5
@@ -187,6 +187,7 @@ public class EntityManaBurst extends EntityThrowable implements IManaBurst {
|
||||
rotationPitch = prevRotationPitch + (rotationPitch - prevRotationPitch) * 0.2F;
|
||||
rotationYaw = prevRotationYaw + (rotationYaw - prevRotationYaw) * 0.2F;
|
||||
float f3 = getGravityVelocity();
|
||||
|
||||
motionY -= f3;
|
||||
setPosition(posX, posY, posZ);
|
||||
}
|
||||
@@ -333,9 +334,7 @@ public class EntityManaBurst extends EntityThrowable implements IManaBurst {
|
||||
|
||||
@Override
|
||||
public void onUpdate() {
|
||||
if(fake)
|
||||
superUpdate();
|
||||
else super.onUpdate();
|
||||
superUpdate();
|
||||
|
||||
ILens lens = getLensInstance();
|
||||
if(lens != null)
|
||||
@@ -605,7 +604,6 @@ public class EntityManaBurst extends EntityThrowable implements IManaBurst {
|
||||
dataWatcher.updateObject(dataWatcherStart + 4, mana);
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public float getGravity() {
|
||||
return dataWatcher.getWatchableObjectFloat(dataWatcherStart + 5);
|
||||
@@ -616,7 +614,6 @@ public class EntityManaBurst extends EntityThrowable implements IManaBurst {
|
||||
dataWatcher.updateObject(dataWatcherStart + 5, gravity);
|
||||
}
|
||||
|
||||
|
||||
final int coordsStart = dataWatcherStart + 6;
|
||||
|
||||
@Override
|
||||
|
||||
Reference in new issue
Block a user