mirror of
https://github.com/Anuken/Mindustry.git
synced 2026-01-25 22:12:16 -08:00
Fixed #2477
This commit is contained in:
parent
b3e7b9e65b
commit
0cc3bcb121
1 changed files with 7 additions and 1 deletions
|
|
@ -93,7 +93,13 @@ public abstract class LStatement{
|
|||
Core.scene.add(t);
|
||||
|
||||
t.update(() -> {
|
||||
if(b.parent == null) return;
|
||||
if(b.parent == null || !b.isDescendantOf(Core.scene.root)){
|
||||
Core.app.post(() -> {
|
||||
hitter.remove();
|
||||
t.remove();
|
||||
});
|
||||
return;
|
||||
}
|
||||
|
||||
b.localToStageCoordinates(Tmp.v1.set(b.getWidth()/2f, b.getHeight()/2f));
|
||||
t.setPosition(Tmp.v1.x, Tmp.v1.y, Align.center);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue