Skip to content

Commit 4c575a4

Browse files
Fix up some bad 1.21.4 textures
1 parent 07e8981 commit 4c575a4

File tree

3 files changed

+12
-12
lines changed

3 files changed

+12
-12
lines changed

DynmapCore/src/main/java/org/dynmap/hdmap/HDBlockStateTextureMap.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ public void resizeFaces(int cnt) {
8080
}
8181

8282
// Add block state to table, with given block IDs and state indexes
83-
public void addToTable(Map<DynmapBlockState, BitSet> states) {
83+
public void addToTable(Map<DynmapBlockState, BitSet> states, int lineNum) {
8484
/* Add entries to lookup table */
8585
for (DynmapBlockState baseblk : states.keySet()) {
8686
if (baseblk.isNotAir()) {
@@ -98,7 +98,7 @@ public void addToTable(Map<DynmapBlockState, BitSet> states) {
9898
}
9999
}
100100
else {
101-
Log.warning("Invalid texture block name: " + baseblk.blockName);
101+
Log.warning("Invalid texture block name: " + baseblk.blockName + ((lineNum > 0) ? "(line " + lineNum + ")" : ""));
102102
}
103103
}
104104
}

DynmapCore/src/main/java/org/dynmap/hdmap/TexturePack.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -569,7 +569,7 @@ private static void processTextureMaps() {
569569
txtids[i] = ti.texture_ids.get(i).intValue();
570570
}
571571
HDBlockStateTextureMap map = new HDBlockStateTextureMap(txtids, null, ti.colorMult, ti.custColorMult, ti.blockset, true, null, ti.trans);
572-
map.addToTable(ti.states);
572+
map.addToTable(ti.states, -1);
573573
}
574574
}
575575
/**
@@ -2146,7 +2146,7 @@ else if(av[0].equals("stdrot")) {
21462146
if (bsprslt.size() > 0) {
21472147
Integer colorIndex = (blockColorIdx >= 0)?(blockColorIdx + IMG_CNT):null;
21482148
HDBlockStateTextureMap map = new HDBlockStateTextureMap(faces, layers, colorMult, custColorMult, blockset, stdrot, colorIndex, trans);
2149-
map.addToTable(bsprslt);
2149+
map.addToTable(bsprslt, lineNum);
21502150
cnt++;
21512151
}
21522152
else {

DynmapCore/src/main/resources/texture_1.txt

+8-8
Original file line numberDiff line numberDiff line change
@@ -4617,7 +4617,7 @@ block:id=%melon_stem,patch0=0:melon_stem,blockcolor=foliagebiome,transparency=TR
46174617
[1.20.5-]texture:id=vault_front_on,filename=assets/minecraft/textures/block/vault_front_on.png,xcount=1,ycount=1
46184618
[1.20.5-]texture:id=vault_front_ejecting,filename=assets/minecraft/textures/block/vault_front_ejecting.png,xcount=1,ycount=1
46194619
[1.20.5-]texture:id=vault_top_ejecting,filename=assets/minecraft/textures/block/vault_top_ejecting.png,xcount=1,ycount=1
4620-
[1.20.5-]texture:id=minecraft:all,filename=assets/minecraft/textures/all.png,xcount=1,ycount=1
4620+
[1.20.5-]texture:id=heavy_core,filename=assets/minecraft/textures/block/heavy_core.png,xcount=2,ycount=2
46214621
[1.20.5-]block:id=%vault,state=facing:north/ominous:true/vault_state:inactive,patch0=0:vault_side_off_ominous,patch1=0:vault_bottom_ominous,patch2=0:vault_top_ominous,patch3=0:vault_front_off_ominous,transparency=SEMITRANSPARENT,stdrot=true
46224622
[1.20.5-]block:id=%vault,state=facing:north/ominous:true/vault_state:active,patch0=0:vault_side_on_ominous,patch1=0:vault_bottom_ominous,patch2=0:vault_top_ominous,patch3=0:vault_front_on_ominous,transparency=SEMITRANSPARENT,stdrot=true
46234623
[1.20.5-]block:id=%vault,state=facing:north/ominous:true/vault_state:unlocking,patch0=0:vault_side_on_ominous,patch1=0:vault_bottom_ominous,patch2=0:vault_top_ominous,patch3=0:vault_front_ejecting_ominous,transparency=SEMITRANSPARENT,stdrot=true
@@ -4650,7 +4650,7 @@ block:id=%melon_stem,patch0=0:melon_stem,blockcolor=foliagebiome,transparency=TR
46504650
[1.20.5-]block:id=%vault,state=facing:east/ominous:false/vault_state:active,patch0=0:vault_side_on,patch1=0:vault_bottom,patch2=0:vault_top,patch3=0:vault_front_on,transparency=SEMITRANSPARENT,stdrot=true
46514651
[1.20.5-]block:id=%vault,state=facing:east/ominous:false/vault_state:unlocking,patch0=0:vault_side_on,patch1=0:vault_bottom,patch2=0:vault_top,patch3=0:vault_front_ejecting,transparency=SEMITRANSPARENT,stdrot=true
46524652
[1.20.5-]block:id=%vault,state=facing:east/ominous:false/vault_state:ejecting,patch0=0:vault_side_on,patch1=0:vault_bottom,patch2=0:vault_top_ejecting,patch3=0:vault_front_ejecting,transparency=SEMITRANSPARENT,stdrot=true
4653-
[1.20.5-]block:id=%heavy_core,patch0=0:minecraft:all,transparency=SEMITRANSPARENT,stdrot=true
4653+
[1.20.5-]block:id=%heavy_core,patch0=0:heavy_core,patch1=1:heavy_core,patch2=2:heavy_core,transparency=SEMITRANSPARENT,stdrot=true
46544654

46554655
# 1.21
46564656
[1.21-]texture:id=copper_bulb_lit_powered,filename=assets/minecraft/textures/block/copper_bulb_lit_powered.png,xcount=1,ycount=1
@@ -4984,12 +4984,12 @@ block:id=%melon_stem,patch0=0:melon_stem,blockcolor=foliagebiome,transparency=TR
49844984
[1.21.4-]texture:id=creaking_heart_top,filename=assets/minecraft/textures/block/creaking_heart_top.png,xcount=1,ycount=1
49854985
[1.21.4-]texture:id=creaking_heart_active,filename=assets/minecraft/textures/block/creaking_heart_active.png,xcount=1,ycount=1
49864986
[1.21.4-]texture:id=creaking_heart,filename=assets/minecraft/textures/block/creaking_heart.png,xcount=1,ycount=1
4987-
[1.21.4-]block:id=%creaking_heart,active:false,state=axis:x,patch0=0:creaking_heart_top,patch1=6000:creaking_heart,patch2=6000:creaking_heart,patch3=0:creaking_heart_top,patch4=6000:creaking_heart,patch5=6000:creaking_heart,stdrot=true
4988-
[1.21.4-]block:id=%creaking_heart,active:false,state=axis:y,patch0=0:creaking_heart,patch1=0:creaking_heart_top,patch2=0:creaking_heart,patch3=0:creaking_heart,patch4=0:creaking_heart_top,patch5=0:creaking_heart,stdrot=true
4989-
[1.21.4-]block:id=%creaking_heart,active:false,state=axis:z,patch0=6000:creaking_heart,patch1=0:creaking_heart,patch2=0:creaking_heart_top,patch3=6000:creaking_heart,patch4=0:creaking_heart,patch5=0:creaking_heart_top,stdrot=true
4990-
[1.21.4-]block:id=%creaking_heart_active,active:true,state=axis:x,patch0=0:creaking_heart_top_active,patch1=6000:creaking_heart_active,patch2=6000:creaking_heart_active,patch3=0:creaking_heart_top_active,patch4=6000:creaking_heart_active,patch5=6000:creaking_heart_active,stdrot=true
4991-
[1.21.4-]block:id=%creaking_heart_active,active:true,state=axis:y,patch0=0:creaking_heart_active,patch1=0:creaking_heart_top_active,patch2=0:creaking_heart_active,patch3=0:creaking_heart_active,patch4=0:creaking_heart_top_active,patch5=0:creaking_heart_active,stdrot=true
4992-
[1.21.4-]block:id=%creaking_heart_active,active:true,state=axis:z,patch0=6000:creaking_heart_active,patch1=0:creaking_heart_active,patch2=0:creaking_heart_top_active,patch3=6000:creaking_heart_active,patch4=0:creaking_heart_active,patch5=0:creaking_heart_top_active,stdrot=true
4987+
[1.21.4-]block:id=%creaking_heart,state=axis:x/active:false,patch0=0:creaking_heart_top,patch1=6000:creaking_heart,patch2=6000:creaking_heart,patch3=0:creaking_heart_top,patch4=6000:creaking_heart,patch5=6000:creaking_heart,stdrot=true
4988+
[1.21.4-]block:id=%creaking_heart,state=axis:y/active:false,patch0=0:creaking_heart,patch1=0:creaking_heart_top,patch2=0:creaking_heart,patch3=0:creaking_heart,patch4=0:creaking_heart_top,patch5=0:creaking_heart,stdrot=true
4989+
[1.21.4-]block:id=%creaking_heart,state=axis:z/active:false,patch0=6000:creaking_heart,patch1=0:creaking_heart,patch2=0:creaking_heart_top,patch3=6000:creaking_heart,patch4=0:creaking_heart,patch5=0:creaking_heart_top,stdrot=true
4990+
[1.21.4-]block:id=%creaking_heart,state=axis:x/active:true,patch0=0:creaking_heart_top_active,patch1=6000:creaking_heart_active,patch2=6000:creaking_heart_active,patch3=0:creaking_heart_top_active,patch4=6000:creaking_heart_active,patch5=6000:creaking_heart_active,stdrot=true
4991+
[1.21.4-]block:id=%creaking_heart,state=axis:y/active:true,patch0=0:creaking_heart_active,patch1=0:creaking_heart_top_active,patch2=0:creaking_heart_active,patch3=0:creaking_heart_active,patch4=0:creaking_heart_top_active,patch5=0:creaking_heart_active,stdrot=true
4992+
[1.21.4-]block:id=%creaking_heart,state=axis:z/active:true,patch0=6000:creaking_heart_active,patch1=0:creaking_heart_active,patch2=0:creaking_heart_top_active,patch3=6000:creaking_heart_active,patch4=0:creaking_heart_active,patch5=0:creaking_heart_top_active,stdrot=true
49934993
#All the resin stuff
49944994
[1.21.4-]texture:id=resin_bricks,filename=assets/minecraft/textures/block/resin_bricks.png,xcount=1,ycount=1
49954995
[1.21.4-]texture:id=chiseled_resin_bricks,filename=assets/minecraft/textures/block/chiseled_resin_bricks.png,xcount=1,ycount=1

0 commit comments

Comments
 (0)