Fixed minimap not updating when build team changes
This commit is contained in:
@@ -33,13 +33,18 @@ public class MinimapRenderer{
|
||||
updateAll();
|
||||
});
|
||||
|
||||
//make sure to call on the graphics thread
|
||||
Events.on(TileChangeEvent.class, event -> {
|
||||
//TODO don't update when the minimap is off?
|
||||
if(!ui.editor.isShown()){
|
||||
update(event.tile);
|
||||
}
|
||||
});
|
||||
|
||||
Events.on(BuildTeamChangeEvent.class, event -> {
|
||||
if(!ui.editor.isShown()){
|
||||
update(event.build.tile);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
public Pixmap getPixmap(){
|
||||
|
||||
Reference in New Issue
Block a user