randomizeFloor is now 100% faster
This commit is contained in:
parent
f948a6917b
commit
ad787729ba
@ -339,7 +339,7 @@ public class DiscoParty {
|
|||||||
|
|
||||||
void randomizeFloor(Block block, int index) {
|
void randomizeFloor(Block block, int index) {
|
||||||
int to_color = (index + state) % discoColours.length;
|
int to_color = (index + state) % discoColours.length;
|
||||||
block.setType(Material.WOOL);
|
|
||||||
block.setData(discoColours[to_color].getData());
|
block.setData(discoColours[to_color].getData());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user