Fixed some important crashes and multithreading issues

This commit is contained in:
Anuken
2018-06-25 18:46:04 -04:00
parent d948607039
commit b9b34eea37
3 changed files with 12 additions and 6 deletions

View File

@@ -93,6 +93,11 @@ public class ItemTransfer extends TimedEntity implements DrawTrait{
@Override
public void update() {
if(to == null){
remove();
return;
}
super.update();
current.set(from).interpolate(tovec.set(to.getX(), to.getY()), fin(), Interpolation.pow3);
current.add(tovec.set(to.getX(), to.getY()).sub(from).nor().rotate90(1).scl(seed * fslope() * 10f));