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

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

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

revision 2425 by torben, Fri Mar 22 19:38:26 2013 UTC revision 2426 by torben, Sat Mar 7 20:54:11 2015 UTC
# Line 2  package dk.thoerup.bukkit.hoeruputils.ch Line 2  package dk.thoerup.bukkit.hoeruputils.ch
2    
3    
4  import java.util.HashMap;  import java.util.HashMap;
5    import java.util.HashSet;
6  import java.util.List;  import java.util.List;
7  import java.util.Set;  import java.util.Set;
8  import java.util.TreeMap;  import java.util.TreeMap;
# Line 82  public class AdvancedChest  implements L Line 83  public class AdvancedChest  implements L
83                  }                  }
84    
85    
86                  Block b = player.getTargetBlock(null, 30);                                        Block b = player.getTargetBlock( (HashSet<Byte>)null, 30);                      
87    
88                  if (b.getTypeId() != 54 && b.getTypeId() != 154) {                  if (b.getTypeId() != 54 && b.getTypeId() != 154) {
89                          player.sendMessage("[Chest] Please look at the chest/hopper you want to protect");                          player.sendMessage("[Chest] Please look at the chest/hopper you want to protect");

Legend:
Removed from v.2425  
changed lines
  Added in v.2426

  ViewVC Help
Powered by ViewVC 1.1.20