Skip to content

Commit

Permalink
Add AI Based on capability, not type
Browse files Browse the repository at this point in the history
  • Loading branch information
AtomicBlom committed Sep 2, 2016
1 parent 030bbd6 commit de3bd41
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion build.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# suppress inspection "UnusedProperty" for whole file
mod_version=1.1.1
mod_version=1.1.2
mod_id=shearmadness
group_name=com.github.atomicblom.shearmadness

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ public void onCapabilityAttaching(AttachCapabilitiesEvent.Entity event)
public void onCommonEntityJoinWorldEvent(EntityJoinWorldEvent event)
{
final Entity entity = event.getEntity();
if (entity instanceof EntitySheep)
if (entity.hasCapability(CapabilityProvider.CHISELED_SHEEP, null))
{
final EntityLiving livingEntity = (EntityLiving) event.getEntity();
final EntityAITasks tasks = livingEntity.tasks;
Expand Down

0 comments on commit de3bd41

Please sign in to comment.