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

Diff of /miscJava/bukkit-minecraft-plugins/HoerupUtils/src/dk/thoerup/bukkit/hoeruputils/deprecated/PowerMiner.java

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

revision 1381 by torben, Sat Apr 23 14:32:49 2011 UTC revision 1383 by torben, Sat Apr 23 14:40:49 2011 UTC
# Line 50  public class AdminDestroy extends BlockL Line 50  public class AdminDestroy extends BlockL
50                  case 3:                                  case 3:                
51                          return 0; //instabreak already throws dirt                                        return 0; //instabreak already throws dirt              
52                  case 16:                  case 16:
53                          return 264;                                      return 263;            
54                  default:                  default:
55                          return b.getTypeId(); //don't throw any others                          return b.getTypeId(); //don't throw any others
56                  }                  }
# Line 71  public class AdminDestroy extends BlockL Line 71  public class AdminDestroy extends BlockL
71                                                                    
72                                  if (blockid != 0) {                                                              if (blockid != 0) {                            
73                                          ItemStack stack = new ItemStack(blockid, 1);                                          ItemStack stack = new ItemStack(blockid, 1);
74                                          b.getWorld().dropItem(b.getLocation(), stack);                                          b.getWorld().dropItemNaturally(b.getLocation(), stack);
75                                  }                                  }
76                                                                    
77                          }                          }

Legend:
Removed from v.1381  
changed lines
  Added in v.1383

  ViewVC Help
Powered by ViewVC 1.1.20