fix bug: signs not being saved
This commit is contained in:
parent
4803f3027a
commit
8ff7020c76
2 changed files with 9 additions and 3 deletions
|
@ -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.
|
||||
|
|
|
@ -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);
|
||||
|
|
Reference in a new issue