From ad787729ba657b278facfd20db6c2d188b8d8473 Mon Sep 17 00:00:00 2001 From: Charlie Date: Thu, 31 Jul 2014 21:03:02 -0400 Subject: [PATCH] randomizeFloor is now 100% faster --- src/ca/gibstick/discosheep/DiscoParty.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ca/gibstick/discosheep/DiscoParty.java b/src/ca/gibstick/discosheep/DiscoParty.java index fa83ea7..156c221 100644 --- a/src/ca/gibstick/discosheep/DiscoParty.java +++ b/src/ca/gibstick/discosheep/DiscoParty.java @@ -339,7 +339,7 @@ public class DiscoParty { void randomizeFloor(Block block, int index) { int to_color = (index + state) % discoColours.length; - block.setType(Material.WOOL); + block.setData(discoColours[to_color].getData()); }