Skip to content

Commit

Permalink
Fix can't attack mobs with a chisel
Browse files Browse the repository at this point in the history
  • Loading branch information
AtomicBlom committed Aug 22, 2016
1 parent 58936c1 commit 76bf0f2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion build.properties
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@ forge_version=12.18.1.2064
# simply re-run your setup task after changing the mappings to update your workspace.
mcp_mappings=snapshot_20160820

chisel_version=0.0.6.38
chisel_version=0.0.6.33
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,10 @@ public void onAttack(AttackEntityEvent event)
return;
}

if (!sheep.hasCapability(CapabilityProvider.CHISELED_SHEEP, null)) {
return;
}

event.setCanceled(true);

Chiseling.chiselSheep(sheep, entityPlayer, activeStack);
Expand Down

0 comments on commit 76bf0f2

Please sign in to comment.