Skip to content

Commit 91d7401

Browse files
committed
fixing build problems with openjdk-7-jdk
1 parent 603b6c5 commit 91d7401

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/docs/js/generateSoundsDoc.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ var sound, soundName, sounds = org.bukkit.Sound.values();
4141
for (i = 0; i < sounds.length; i++ ){
4242
sound = sounds[i];
4343
soundName = '' + sound.name();
44-
var methodName = soundName.toLowerCase().replace(/_(.)/g,function(a,b){
44+
var methodName = (''+soundName).toLowerCase().replace(/_(.)/g,function(a,b){
4545
return b.toUpperCase();
4646
});
4747
enumVals.push(' * ' + methodName + '()');
@@ -95,7 +95,7 @@ sounds = Packages.net.canarymod.api.world.effects.SoundEffect.Type.values();
9595
for (i = 0; i < sounds.length; i++ ){
9696
sound = sounds[i];
9797
soundName = '' + sound.name();
98-
methodName = soundName.toLowerCase().replace(/_(.)/g,function(a,b){
98+
methodName = (''+soundName).toLowerCase().replace(/_(.)/g,function(a,b){
9999
return b.toUpperCase();
100100
});
101101
enumVals.push(' * ' + methodName + '()');

0 commit comments

Comments
 (0)