Skip to content

Commit

Permalink
1.11.8 hotfix for entity attacking
Browse files Browse the repository at this point in the history
  • Loading branch information
Draylar committed Feb 20, 2021
1 parent 73f7c9d commit 3c68390
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 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 @@ yarn_mappings=1.16.5+build.4
loader_version=0.11.1

# Mod Properties
mod_version=1.11.7
mod_version=1.11.8
maven_group=draylar
archives_base_name=identity

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,13 @@ private void identityAttack(Entity target, CallbackInfo ci) {

if(identity != null) {
if(getMainHandStack().isEmpty()) {
identity.tryAttack(target);
ci.cancel();
try {
identity.tryAttack(target);
ci.cancel();
} catch (Exception e) {
// FALL BACK TO DEFAULT BEHAVIOR.
// Some mobs do not override, so it defaults to attack damage attribute, but the identity does not have any
}
}
}
}
Expand Down

0 comments on commit 3c68390

Please sign in to comment.