Should be server-side only
This commit is contained in:
@@ -44,6 +44,7 @@ public class EntityIceSpike extends EntityMagicConstruct {
|
||||
|
||||
double extensionSpeed = 0;
|
||||
|
||||
if(!world.isRemote){
|
||||
if(lifetime - this.ticksExisted < 15){
|
||||
extensionSpeed = -0.01 * (this.ticksExisted - (lifetime - 15));
|
||||
}else if(lifetime - this.ticksExisted < 25){
|
||||
@@ -56,6 +57,7 @@ public class EntityIceSpike extends EntityMagicConstruct {
|
||||
this.move(MoverType.SELF, this.facing.getXOffset() * extensionSpeed, this.facing.getYOffset() * extensionSpeed,
|
||||
this.facing.getZOffset() * extensionSpeed);
|
||||
}
|
||||
}
|
||||
|
||||
if(lifetime - this.ticksExisted == 30) this.playSound(WizardrySounds.ENTITY_ICE_SPIKE_EXTEND, 1, 2.5f);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user