Crash fix

This commit is contained in:
Anuken
2019-02-06 09:04:19 -05:00
parent d88923bb71
commit 2569b2139d

View File

@ -45,8 +45,8 @@ public class CoreBlock extends StorageBlock{
CoreEntity entity = tile.entity();
Effects.effect(Fx.spawn, entity);
entity.progress = 0;
entity.currentUnit.onRespawn(tile);
entity.currentUnit = player;
entity.currentUnit.onRespawn(tile);
entity.currentUnit.heal();
entity.currentUnit.rotation = 90f;
entity.currentUnit.applyImpulse(0, 8f);