Skip to content

Commit

Permalink
Prevent doppelgangers from picking up items.
Browse files Browse the repository at this point in the history
Bumped micro version number.
Tested on Spigot build 1543.
  • Loading branch information
totemo committed Sep 2, 2014
1 parent 2f358f2 commit 03fddf0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>io.github.totemo</groupId>
<artifactId>Doppelganger</artifactId>
<version>0.9.1</version>
<version>0.9.2</version>
<packaging>jar</packaging>
<name>Doppelganger</name>
<properties>
Expand Down
4 changes: 4 additions & 0 deletions src/io/github/totemo/doppelganger/CreatureFactory.java
Original file line number Diff line number Diff line change
Expand Up @@ -440,6 +440,10 @@ protected LivingEntity spawnCreature(String creatureType, Location loc, String n
}
}
}

// Players should not be able to get a doppelganger's head (or other gear)
// just by dropping items near it.
livingEntity.setCanPickupItems(false);
return livingEntity;
} // spawnCreature

Expand Down

0 comments on commit 03fddf0

Please sign in to comment.