From 03fddf02549e49adcc7b372f2484449be08a7af0 Mon Sep 17 00:00:00 2001 From: totemo Date: Tue, 2 Sep 2014 13:59:24 +0930 Subject: [PATCH] Prevent doppelgangers from picking up items. Bumped micro version number. Tested on Spigot build 1543. --- pom.xml | 2 +- src/io/github/totemo/doppelganger/CreatureFactory.java | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 2c152b9..c943cc3 100644 --- a/pom.xml +++ b/pom.xml @@ -3,7 +3,7 @@ 4.0.0 io.github.totemo Doppelganger - 0.9.1 + 0.9.2 jar Doppelganger diff --git a/src/io/github/totemo/doppelganger/CreatureFactory.java b/src/io/github/totemo/doppelganger/CreatureFactory.java index 6a03a7a..2517100 100644 --- a/src/io/github/totemo/doppelganger/CreatureFactory.java +++ b/src/io/github/totemo/doppelganger/CreatureFactory.java @@ -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