/*    */   public void update(int time)
/*    */   {
/* 58 */     if ((Math.abs(this.x - this.targetX) < 5.0F) && (Math.abs(this.y - this.targetY) < 5.0F)) {
/* 59 */       this.speedX = 0.0F;
/* 60 */       this.speedY = 0.0F;
/* 61 */       this.active = true;
/*    */     }
/* 63 */     this.x += this.speedX;
/* 64 */     this.y += this.speedY;
/*    */ 
/* 66 */     if (this.active)
/* 67 */       if (this.timer < this.duration) {
/* 68 */         this.timer += time;
/*    */       } else {
/* 70 */         Core.effects.add(new GrenadeExplosion(300, (int)this.x - 24, (int)this.y - 24));
/* 71 */         this.visible = false;
/*    */       }
/*    */   }