Cleaned up star a bit
This commit is contained in:
parent
9b7d99c408
commit
efd6d273f7
1 changed files with 5 additions and 2 deletions
|
@ -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));
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue