Skip to content

Commit

Permalink
fixing actions and textures
Browse files Browse the repository at this point in the history
  • Loading branch information
Garten committed May 23, 2020
1 parent fca42c7 commit bf4c716
Show file tree
Hide file tree
Showing 37 changed files with 430 additions and 719 deletions.
9 changes: 3 additions & 6 deletions src/basic/NameSupplier.java
Original file line number Diff line number Diff line change
@@ -1,16 +1,13 @@
package basic;

import java.util.function.Supplier;

public interface NameSupplier extends Supplier<String> {
public interface NameSupplier {

public abstract String name();

@Override
default String get() {
default String getName() {
String name = this.name();
if (name.endsWith("$")) {
name.substring(0, name.length() - 1);
return name.substring(0, name.length() - 1);
}
return name;
}
Expand Down
4 changes: 2 additions & 2 deletions src/converter/Converter.java
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ public Converter(ConvertTask converterData) {

public Converter open(File fileFolder, ConvertTask converterData) throws IOException {
Place place = converterData.getPlace();
SkinManager.init(converterData.getTexturePack(), converterData.getOption()
Skins.init(converterData.getTexturePack(), converterData.getOption()
.getScale());
Position start = place.getStart();
Position end = place.getEnd();
Expand Down Expand Up @@ -89,7 +89,7 @@ public void addMcaSection(Section section) {
Position target = toWrite.getSecond();
for (Position offset : toWrite.getFirst()) {
Position writePos = Position.add(target, offset);
this.blockContent.setMaterial(writePos, section.getBlock(offset));
this.blockContent.setBlock(writePos, section.getBlock(offset));
this.blockContent.setIsNextToAir(writePos, false);
}
}
Expand Down
Loading

0 comments on commit bf4c716

Please sign in to comment.