replaced StringBuffer with StringBuilder
parent
cf9436b4e3
commit
8fbd693783
|
@ -27,7 +27,7 @@ public class HighQualityCardImagesProvider implements CardImagesProvider {
|
||||||
final MagicCardDefinition cardDefinition,
|
final MagicCardDefinition cardDefinition,
|
||||||
final int index) {
|
final int index) {
|
||||||
final int imageIndex=index%cardDefinition.getImageCount();
|
final int imageIndex=index%cardDefinition.getImageCount();
|
||||||
final StringBuffer buffer=new StringBuffer();
|
final StringBuilder buffer=new StringBuilder();
|
||||||
buffer.append(MagicMain.getGamePath()).append(File.separator);
|
buffer.append(MagicMain.getGamePath()).append(File.separator);
|
||||||
buffer.append(cardDefinition.isToken()?"tokens":"cards").append(File.separator);
|
buffer.append(cardDefinition.isToken()?"tokens":"cards").append(File.separator);
|
||||||
buffer.append(cardDefinition.getImageName());
|
buffer.append(cardDefinition.getImageName());
|
||||||
|
|
Loading…
Reference in New Issue