/[projects]/miscJava/bukkit-minecraft-plugins/HoerupUtils/src/main/java/dk/thoerup/bukkit/hoeruputils/SnitchingChest.java
ViewVC logotype

Diff of /miscJava/bukkit-minecraft-plugins/HoerupUtils/src/main/java/dk/thoerup/bukkit/hoeruputils/SnitchingChest.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1775 by torben, Thu Apr 5 12:50:15 2012 UTC revision 1777 by torben, Thu Apr 5 14:10:07 2012 UTC
# Line 127  public class SnitchingChest  implements Line 127  public class SnitchingChest  implements
127                    
128          void removeChest(Location loc) {          void removeChest(Location loc) {
129                  SnitchingChestBean chest = chestMap.remove(loc);                  SnitchingChestBean chest = chestMap.remove(loc);
130                  plugin.getDatabase().delete(chest);                  if (chest != null) {
131                            plugin.getDatabase().delete(chest);
132                    }
133          }          }
134                    
135          void loadChests() {                      void loadChests() {            
# Line 136  public class SnitchingChest  implements Line 138  public class SnitchingChest  implements
138                          Location loc = getChestLocation(server, chest);                          Location loc = getChestLocation(server, chest);
139                          chestMap.put(loc, chest);                                chestMap.put(loc, chest);      
140                  }                  }
141                    
142                    plugin.getLogger().info("[SnitchingChest] loaded " + chestMap.size() + " chests");
143          }          }
144                    
145                    

Legend:
Removed from v.1775  
changed lines
  Added in v.1777

  ViewVC Help
Powered by ViewVC 1.1.20