fix bug: signs not being saved

This commit is contained in:
walterhiggins 2014-01-03 09:18:43 +00:00
parent 4803f3027a
commit 8ff7020c76
2 changed files with 9 additions and 3 deletions

View file

@ -1,6 +1,12 @@
# 2014 01 02
Added a warning in console at start-up if legacy directories are detected.
Added 'use strict' to core modules.
Bug Fix; Signs were not being saved. (introduced with recent change to JSONifying Location)
# 2014 01 01 # 2014 01 01
'Buddha' Release - towards a total elimination of the 'self' variable. 'Buddha' Release - towards a total annihilation of the 'self' variable.
The 'self' variable should only be used at the in-game or server The 'self' variable should only be used at the in-game or server
console command prompts and should not be used in modules or in console command prompts and should not be used in modules or in
multi-threaded code. multi-threaded code.

View file

@ -147,10 +147,10 @@ signs.menu = function(
for (var i = 0; i < len ; i++) for (var i = 0; i < len ; i++)
{ {
var loc = signsOfSameLabel[i]; var loc = signsOfSameLabel[i];
var world = org.bukkit.Bukkit.getWorld(loc[0]); var world = org.bukkit.Bukkit.getWorld(loc.world);
if (!world) if (!world)
continue; continue;
var block = world.getBlockAt(loc[1],loc[2],loc[3]); var block = world.getBlockAt(loc.x,loc.y,loc.z);
if (block.state instanceof org.bukkit.block.Sign){ if (block.state instanceof org.bukkit.block.Sign){
convertToMenuSign(block.state,false); convertToMenuSign(block.state,false);
defragged.push(loc); defragged.push(loc);