From 8cf1b4b98a75dfea3ac40fec5a4f1c081a3c5638 Mon Sep 17 00:00:00 2001 From: Gibstick Date: Sat, 9 Nov 2013 06:42:54 -0500 Subject: [PATCH] Sheep no longer spawn at world.GetHighestBlockAt Preliminary support for cave parties! --- src/ca/gibstick/discosheep/DiscoParty.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/ca/gibstick/discosheep/DiscoParty.java b/src/ca/gibstick/discosheep/DiscoParty.java index 89a7187..66041cb 100644 --- a/src/ca/gibstick/discosheep/DiscoParty.java +++ b/src/ca/gibstick/discosheep/DiscoParty.java @@ -212,7 +212,6 @@ public class DiscoParty { double y; - /* random point on circle with polar coordinates * random number must be square rooted to obtain uniform distribution * otherwise the sheep are biased toward the centre */ @@ -220,7 +219,7 @@ public class DiscoParty { double azimuth = r.nextDouble() * 2 * Math.PI; // radians x += rand * Math.cos(azimuth); z += rand * Math.sin(azimuth); - y = world.getHighestBlockYAt((int) x, (int) z); + y = this.player.getLocation().getY(); loc = new Location(world, x, y, z); loc.setPitch(r.nextFloat() * 360 - 180);