Skip to content

Commit

Permalink
Merge pull request #1589 from Ghost-chu/hikari
Browse files Browse the repository at this point in the history
Fix entity explode bug
  • Loading branch information
Ghost-chu authored May 29, 2024
2 parents 7e3dbfe + dfb8abb commit 51fc9ab
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<groupId>com.ghostchu</groupId>
<artifactId>quickshop-hikari</artifactId>
<version>6.2.0.1</version>
<version>6.2.0.2</version>
<packaging>pom</packaging>
<name>quickshop-hikari</name>
<description>Another QuickShop fork</description>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -99,11 +99,14 @@ public void onEntityBlockChange(EntityChangeBlockEvent e) {
public void onExplode(EntityExplodeEvent e) {
for (int i = 0, a = e.blockList().size(); i < a; i++) {
final Block b = e.blockList().get(i);
final Shop shop = getShopNature(b.getLocation(), true);

Shop shop = getShopNature(b.getLocation(), true);
if (shop == null) {
shop = getShopNextTo(b.getLocation());
}
if (shop == null) {
continue;
}

if (plugin.getConfig().getBoolean("protect.explode")) {
e.setCancelled(true);
} else {
Expand Down

0 comments on commit 51fc9ab

Please sign in to comment.