Skip to content
Browse files

Bukkit, y u have bugs? *cries into Top_Cat's fur coat*

Signed-off-by: Robert Xu <robxu9@gmail.com>
  • Loading branch information...
1 parent 11abf00 commit daa5af91664a0763cfacb4bb66fe86e1c0494dbd @robxu9 robxu9 committed Apr 15, 2012
View
2 src/main/java/com/theminequest/MQCoreEvents/BasicEvents/DestroyEvent.java
@@ -81,7 +81,7 @@ public boolean blockBreakCondition(BlockBreakEvent e) {
Group g = MineQuest.groupManager.getGroup(gid);
System.out.println("DEBUG: Got 1");
if (g.getPlayers().contains(e.getPlayer())){
- int blockid = e.getBlock().getState().getData().getItemTypeId();
+ int blockid = e.getBlock().getType().getId();
System.out.println("DEBUG: Got 2: " + blockid);
for (int t : typestodestroy){
System.out.println("DEBUG: Got 2.3: " + t);
View
2 src/main/java/com/theminequest/MQCoreEvents/BasicEvents/KillEvent.java
@@ -78,6 +78,8 @@ public CompleteStatus action() {
*/
@Override
public boolean entityDamageByEntityCondition(EntityDamageByEntityEvent e) {
+ if (!e.getEntity().isDead())
+ return false;
if (e.getDamager() instanceof Player){
Player p = (Player)e.getDamager();
for (EntityType t : typestokill){

0 comments on commit daa5af9

Please sign in to comment.
Something went wrong with that request. Please try again.