game: Replace statement with expression
This commit is contained in:
@@ -110,12 +110,8 @@ public class SpriteManager
|
||||
public void addSpriteTo(JButton c, int archive, int file)
|
||||
{
|
||||
getSpriteAsync(archive, file, img ->
|
||||
{
|
||||
SwingUtilities.invokeLater(() ->
|
||||
{
|
||||
c.setIcon(new ImageIcon(img));
|
||||
});
|
||||
});
|
||||
c.setIcon(new ImageIcon(img))));
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -124,12 +120,8 @@ public class SpriteManager
|
||||
public void addSpriteTo(JLabel c, int archive, int file)
|
||||
{
|
||||
getSpriteAsync(archive, file, img ->
|
||||
{
|
||||
SwingUtilities.invokeLater(() ->
|
||||
{
|
||||
c.setIcon(new ImageIcon(img));
|
||||
});
|
||||
});
|
||||
c.setIcon(new ImageIcon(img))));
|
||||
}
|
||||
|
||||
public void addSpriteOverrides(SpriteOverride[] add)
|
||||
|
||||
Reference in New Issue
Block a user