mirror of
https://github.com/Anuken/Mindustry.git
synced 2026-03-15 03:11:07 -07:00
Less Core.app.post for build events
This commit is contained in:
parent
d17f0ebc51
commit
40ec7fd6fc
2 changed files with 3 additions and 3 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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. */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue