From 8acf96fc34443ebdcffcfb4729d1a0985f82bf5b Mon Sep 17 00:00:00 2001 From: Georgiy Date: Sun, 30 Jun 2013 21:27:35 -0400 Subject: [PATCH] Made sheeps target player on spawn. --- src/gibstick/bukkit/discosheep/DiscoParty.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/gibstick/bukkit/discosheep/DiscoParty.java b/src/gibstick/bukkit/discosheep/DiscoParty.java index 23287d4..31f71ed 100644 --- a/src/gibstick/bukkit/discosheep/DiscoParty.java +++ b/src/gibstick/bukkit/discosheep/DiscoParty.java @@ -54,6 +54,7 @@ public class DiscoParty { newSheep.setMaxHealth(10000); newSheep.setHealth(10000); newSheep.setColor(discoColours[(int) Math.round(Math.random() * (discoColours.length - 1))]); + newSheep.setTarget(player); getSheep().add(newSheep); }