Skip to content

Commit

Permalink
Fixed a crash bug
Browse files Browse the repository at this point in the history
* Fixed a bug where the game would crash when joining a world with the new version where a Merling was played on an older version already
  • Loading branch information
apace100 committed Jul 30, 2020
1 parent 95e9bf2 commit 01b24e9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ org.gradle.jvmargs=-Xmx1G
loader_version=0.8.9+build.203

# Mod Properties
mod_version = 1.16-0.2.6
mod_version = 1.16-0.2.7
maven_group = io.github.apace100.origins
archives_base_name = Origins

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ public Tag toTag() {

@Override
public void fromTag(Tag tag) {
isActive = ((ByteTag)tag).getByte() > 0;
if(tag instanceof ByteTag) {
isActive = ((ByteTag)tag).getByte() > 0;
}
}
}

0 comments on commit 01b24e9

Please sign in to comment.