--- miscJava/bukkit-minecraft-plugins/HoerupUtils/src/main/java/dk/thoerup/bukkit/hoeruputils/SnitchingChest.java 2012/04/05 14:10:28 1778 +++ miscJava/bukkit-minecraft-plugins/HoerupUtils/src/main/java/dk/thoerup/bukkit/hoeruputils/SnitchingChest.java 2012/04/05 14:27:24 1779 @@ -91,13 +91,11 @@ } SnitchingChestBean chest1 = createChest(player.getName(), "", loc); - //chestMap.put(loc, chest1); addChest(loc, chest1); if (loc2 != null) { SnitchingChestBean chest2 = createChest (player.getName(), "", loc2); addChest(loc, chest2); - //chestMap.put(loc2, chest2 ); } player.sendMessage("[SnitchingChest] Chest is now under surveillance"); @@ -202,6 +200,10 @@ } else { loc = ( (DoubleChest)holder).getLocation(); } + + loc.setX( loc.getBlockX() ); //round to integer, since double chests apparently are placed at pos + 0.5 + loc.setZ( loc.getBlockZ() ); // -- // -- + return loc; }