Less Core.app.post for build events

This commit is contained in:
Anuken 2023-02-15 08:57:06 -05:00
parent d17f0ebc51
commit 40ec7fd6fc
2 changed files with 3 additions and 3 deletions

View file

@ -144,7 +144,7 @@ abstract class BuilderComp implements Posc, Statusc, Teamc, Rotc{
}
if(tile.build instanceof ConstructBuild && !current.initialized){
Core.app.post(() -> Events.fire(new BuildSelectEvent(tile, team, self(), current.breaking)));
Events.fire(new BuildSelectEvent(tile, team, self(), current.breaking));
current.initialized = true;
}

View file

@ -59,7 +59,7 @@ public class Build{
tile.build.lastAccessed = unit.getControllerName();
}
Core.app.post(() -> Events.fire(new BlockBuildBeginEvent(tile, team, unit, true)));
Events.fire(new BlockBuildBeginEvent(tile, team, unit, true));
}
/** Places a ConstructBlock at this location. */
@ -115,7 +115,7 @@ public class Build{
result.placeBegan(tile, previous);
Core.app.post(() -> Events.fire(new BlockBuildBeginEvent(tile, team, unit, false)));
Events.fire(new BlockBuildBeginEvent(tile, team, unit, false));
}
/** Returns whether a tile can be placed at this location by this team. */