From 4b0fb7565a7898a8ebca6c92e8d6497e42c72b77 Mon Sep 17 00:00:00 2001 From: Walter Higgins Date: Thu, 6 Mar 2014 13:17:14 +0000 Subject: [PATCH 1/2] Fix issue #122 --- src/main/js/plugins/minigames/SnowballFight.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/js/plugins/minigames/SnowballFight.js b/src/main/js/plugins/minigames/SnowballFight.js index b72913f..9dccae6 100644 --- a/src/main/js/plugins/minigames/SnowballFight.js +++ b/src/main/js/plugins/minigames/SnowballFight.js @@ -139,7 +139,7 @@ var _getTeam = function( player, pteams ) { var createGame = function( duration, teams ) { var players, i, - _snowBalls = new ItemStack( Material.SNOW_BALL, 64 ); + _snowBalls = new bkItemStack( bkMaterial.SNOW_BALL, 64 ); var _gameState = { teams: teams, @@ -179,7 +179,7 @@ var createGame = function( duration, teams ) { */ var _onSnowballHit = function( l, event ) { var snowball = event.damager; - if ( !snowball || !( snowball instanceof Snowball ) ) { + if ( !snowball || !( snowball instanceof bkSnowball ) ) { return; } var throwersTeam = _getTeam( snowball.shooter, _gameState.teams ); From 64913338a73fbc4fa90a1ecb47cffd371350d210 Mon Sep 17 00:00:00 2001 From: Walter Higgins Date: Thu, 6 Mar 2014 17:59:10 +0000 Subject: [PATCH 2/2] fixes issue #123 --- src/main/js/plugins/spawn.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/js/plugins/spawn.js b/src/main/js/plugins/spawn.js index 30803c3..1cfd566 100644 --- a/src/main/js/plugins/spawn.js +++ b/src/main/js/plugins/spawn.js @@ -37,5 +37,5 @@ command( 'spawn', function( parameters, sender ) { } var world = location.world; var type = ('' + parameters[0]).toUpperCase(); - world.spawnEntity( location, EntityType[type] ); + world.spawnEntity( location, bkEntityType[type] ); }, entities );