Fixed many multiplayer bugs

This commit is contained in:
Anuken
2018-11-07 20:24:38 -05:00
parent 56ffa7905e
commit 9785745384
10 changed files with 33 additions and 22 deletions
@@ -319,6 +319,10 @@ public class Drone extends FlyingUnit implements BuilderTrait{
TileEntity entity = (TileEntity) target;
entity.health += type.healSpeed * Timers.delta();
entity.health = Mathf.clamp(entity.health, 0, entity.tile.block().health);
if(timer.get(timerRepairEffect, 30)){
Effects.effect(BlockFx.healBlockFull, Palette.heal, entity.x, entity.y, entity.tile.block().size);
}
}
updateBuilding(this);