From 8ff7020c76641a8e1427388ecb19d787eab9efdc Mon Sep 17 00:00:00 2001 From: walterhiggins Date: Fri, 3 Jan 2014 09:18:43 +0000 Subject: [PATCH] fix bug: signs not being saved --- docs/release-notes.md | 8 +++++++- src/main/javascript/modules/signs/menu.js | 4 ++-- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/docs/release-notes.md b/docs/release-notes.md index 7187f10..e081839 100644 --- a/docs/release-notes.md +++ b/docs/release-notes.md @@ -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 -'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 console command prompts and should not be used in modules or in multi-threaded code. diff --git a/src/main/javascript/modules/signs/menu.js b/src/main/javascript/modules/signs/menu.js index 397f25a..f07cb84 100644 --- a/src/main/javascript/modules/signs/menu.js +++ b/src/main/javascript/modules/signs/menu.js @@ -147,10 +147,10 @@ signs.menu = function( for (var i = 0; i < len ; i++) { var loc = signsOfSameLabel[i]; - var world = org.bukkit.Bukkit.getWorld(loc[0]); + var world = org.bukkit.Bukkit.getWorld(loc.world); if (!world) 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){ convertToMenuSign(block.state,false); defragged.push(loc);