More models (beds, etc), proper fence support, lighting fixes for steps and slabs
This commit is contained in:
parent
a7189222d8
commit
2943159ffd
4 changed files with 492 additions and 45 deletions
|
|
@ -162,6 +162,8 @@ public class HDBlockModels {
|
|||
}
|
||||
}
|
||||
map[off] = (short)((255*raw_w) / (nativeres*nativeres*nativeres));
|
||||
if(map[off] > 255) map[off] = 255;
|
||||
if(map[off] < 0) map[off] = 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -214,6 +216,8 @@ public class HDBlockModels {
|
|||
}
|
||||
for(int i = 0; i < map.length; i++) {
|
||||
map[i] = (short)(255*map[i]/(nativeres*nativeres*nativeres));
|
||||
if(map[i] > 255) map[i] = 255;
|
||||
if(map[i] < 0) map[i] = 0;
|
||||
}
|
||||
}
|
||||
scaledblocks.put(Integer.valueOf(res), map);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue