From efd6d273f7973e9a1f8325a4e2f7ee78c0b3aaae Mon Sep 17 00:00:00 2001 From: Francesco Macagno Date: Sat, 15 Aug 2015 21:18:47 -0700 Subject: [PATCH] Cleaned up star a bit --- src/main/java/cr0s/warpdrive/conf/structures/Star.java | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/main/java/cr0s/warpdrive/conf/structures/Star.java b/src/main/java/cr0s/warpdrive/conf/structures/Star.java index 4b0be992..4e715de4 100644 --- a/src/main/java/cr0s/warpdrive/conf/structures/Star.java +++ b/src/main/java/cr0s/warpdrive/conf/structures/Star.java @@ -9,7 +9,6 @@ public class Star extends Orb { public Star(int diameter) { super(diameter); - // TODO Auto-generated constructor stub } @Override @@ -17,8 +16,12 @@ public class Star extends Orb { boolean success = super.generate(p_76484_1_, p_76484_2_, p_76484_3_, p_76484_4_, p_76484_5_); if (success) - p_76484_1_.spawnEntityInWorld(new EntityStarCore(p_76484_1_, p_76484_3_, p_76484_4_, p_76484_5_, super.getHeight() / 2)); + return placeStarCore(p_76484_1_, p_76484_3_, p_76484_4_, p_76484_5_, super.getHeight() / 2); return false; } + + public static boolean placeStarCore(World world, int x, int y, int z, int radius) { + return world.spawnEntityInWorld(new EntityStarCore(world, x, y, z, radius)); + } }