From 70a94aa4b10f5f73f060c04cd338dfbacc2dad6f Mon Sep 17 00:00:00 2001 From: Gibstick Date: Sun, 10 Nov 2013 09:57:46 -0500 Subject: [PATCH] cleanup --- src/ca/gibstick/discosheep/DiscoParty.java | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/ca/gibstick/discosheep/DiscoParty.java b/src/ca/gibstick/discosheep/DiscoParty.java index 7c02df5..132e4a7 100644 --- a/src/ca/gibstick/discosheep/DiscoParty.java +++ b/src/ca/gibstick/discosheep/DiscoParty.java @@ -21,7 +21,6 @@ import org.bukkit.block.BlockState; import org.bukkit.entity.Entity; import org.bukkit.event.HandlerList; import org.bukkit.inventory.meta.FireworkMeta; -import org.bukkit.material.Wool; import org.bukkit.scheduler.BukkitRunnable; import org.bukkit.util.Vector; @@ -334,7 +333,7 @@ public class DiscoParty { sheep.setColor(discoColours[(r.nextInt(discoColours.length))]); } - void randomizeFloorColour(Block block) { + void randomizeFloor(Block block) { block.setType(Material.WOOL); block.setData(discoColours[(r.nextInt(discoColours.length))].getData()); } @@ -430,7 +429,7 @@ public class DiscoParty { } for (Block block : this.floorBlocks) { - this.randomizeFloorColour(block); + this.randomizeFloor(block); } } @@ -451,7 +450,6 @@ public class DiscoParty { } void randomizeFirework(Firework firework) { - Random r = new Random(); Builder effect = FireworkEffect.builder(); FireworkMeta meta = firework.getFireworkMeta();