Skip to content

Commit fdd599c

Browse files
committed
fixing fireworks problem on mac os
1 parent ff4ca68 commit fdd599c

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

src/main/js/modules/canary/fireworks.js

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,18 +8,11 @@ var explosionTypes = ['STAR','BURST','CREEPER','LARGE','SMALL'];
88
var cmDyeColor = Packages.net.canarymod.api.DyeColor;
99
var entityFactory = Canary.factory().entityFactory;
1010
var cmEntityType = Packages.net.canarymod.api.entity.EntityType;
11-
var colors = [].concat(cmDyeColor.values());
1211

1312
function canaryFirework( location ) {
1413

1514
var firework = items.fireworkStar(1);
16-
var i1 = Math.floor(Math.random()* colors.length);
17-
var i2 = Math.floor(Math.random()* colors.length);
18-
var colorsToUse = colors.slice(Math.min(i1,i2),Math.max(i1,i2));
19-
if (colorsToUse.length == 0){
20-
colorsToUse = colors;
21-
}
22-
cmFireworkHelper.addStarColors( firework, colorsToUse );
15+
cmFireworkHelper.addStarColors( firework, cmDyeColor.values() );
2316
cmFireworkHelper.setDoesFlicker( firework, true );
2417
cmFireworkHelper.setDoesTrail( firework, true );
2518

0 commit comments

Comments
 (0)