More tile progress

This commit is contained in:
Anuken
2025-07-11 19:07:31 -04:00
parent 8c3840b7ac
commit f9b6e3c0a6
7 changed files with 12 additions and 3 deletions

View File

@@ -89,8 +89,9 @@ public class Generators{
if(!iconPath.exists()){
//save the bottom right region as the "main" sprite for previews
Pixmap out = new Pixmap(basePath);
Pixmap cropped = out.crop(96, 96, 32, 32);
Pixmap cropped = out.crop(32, 32, 32, 32);
iconPath.writePng(cropped);
iconPath.parent().parent().parent().child("editor").child("editor-" + block.name + ".png").writePng(cropped);
out.dispose();
gens.put(block, cropped);
}
@@ -830,7 +831,7 @@ public class Generators{
generate("edges", () -> {
content.blocks().<Floor>each(b -> b instanceof Floor && !(b instanceof OverlayFloor) && !b.isAir(), floor -> {
if(has(floor.name + "-edge") || floor.blendGroup != floor){
if(has(floor.name + "-edge") || floor.blendGroup != floor || (!floor.drawEdgeOut)){
return;
}