Permalink
Browse files

Use continue rather than return for CustomDrops checks.

  • Loading branch information...
me4502 committed May 6, 2017
1 parent 532b92f commit 8d9f88d6012085f62067c82e3980c8dc670156da
Showing with 6 additions and 6 deletions.
  1. +6 −6 src/main/java/com/sk89q/craftbook/mechanics/drops/CustomDrops.java
@@ -241,7 +241,7 @@ public void onBlockBreak(BlockBreakEvent event) {
}
}
if (!found)
- return;
+ continue;
}
if (def.getBiomes() != null) {
@@ -255,7 +255,7 @@ public void onBlockBreak(BlockBreakEvent event) {
}
if (!found) {
- return;
+ continue;
}
}
@@ -270,7 +270,7 @@ public void onBlockBreak(BlockBreakEvent event) {
}
if (!found) {
- return;
+ continue;
}
}
@@ -319,7 +319,7 @@ public void onEntityDeath(EntityDeathEvent event) {
}
}
if (!found)
- return;
+ continue;
}
if (def.getBiomes() != null) {
@@ -333,7 +333,7 @@ public void onEntityDeath(EntityDeathEvent event) {
}
if (!found) {
- return;
+ continue;
}
}
@@ -352,7 +352,7 @@ public void onEntityDeath(EntityDeathEvent event) {
}
if (!found) {
- return;
+ continue;
}
}

0 comments on commit 8d9f88d

Please sign in to comment.