Skip to content

Commit

Permalink
v4.10.0 [ci-build]
Browse files Browse the repository at this point in the history
  • Loading branch information
JannisX11 committed May 9, 2024
1 parent b162ee7 commit dc0067e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 1 addition & 3 deletions js/io/formats/optifine_jem.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,13 @@ var codec = new Codec('optifine_entity', {
}
entitymodel.textureSize = [Project.texture_width, Project.texture_height];
let default_texture = Texture.getDefault();
if (!settings.optifine_save_default_texture.value && !default_texture.use_as_default) {
if (!settings.optifine_save_default_texture.value && !default_texture?.use_as_default) {
default_texture = null;
}
if (default_texture) {
let texture = Texture.getDefault();
entitymodel.texture = getTexturePath(Texture.getDefault());
entitymodel.textureSize = [texture.uv_width, texture.uv_height];
} else {
entitymodel.textureSize = [Project.texture_width, Project.texture_height];
}
if (Project.shadow_size != 1) entitymodel.shadowSize = Project.shadow_size;
entitymodel.models = []
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "Blockbench",
"description": "Low-poly modeling and animation software",
"version": "4.10.0-beta.2",
"version": "4.10.0",
"license": "GPL-3.0-or-later",
"author": {
"name": "JannisX11",
Expand Down

0 comments on commit dc0067e

Please sign in to comment.