Less Core.app.post for build events
This commit is contained in:
@@ -144,7 +144,7 @@ abstract class BuilderComp implements Posc, Statusc, Teamc, Rotc{
|
|||||||
}
|
}
|
||||||
|
|
||||||
if(tile.build instanceof ConstructBuild && !current.initialized){
|
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;
|
current.initialized = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -59,7 +59,7 @@ public class Build{
|
|||||||
tile.build.lastAccessed = unit.getControllerName();
|
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. */
|
/** Places a ConstructBlock at this location. */
|
||||||
@@ -115,7 +115,7 @@ public class Build{
|
|||||||
|
|
||||||
result.placeBegan(tile, previous);
|
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. */
|
/** Returns whether a tile can be placed at this location by this team. */
|
||||||
|
|||||||
Reference in New Issue
Block a user