Skip to content
This repository has been archived by the owner on Nov 1, 2021. It is now read-only.

Commit

Permalink
Fix Protected Regions NPE through API
Browse files Browse the repository at this point in the history
  • Loading branch information
Samsuik committed Jul 17, 2021
1 parent 79cc562 commit cc4767b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions TacoSpigot-Server-Patches/0003-Explosion-Improvements.patch
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
From 48b843febecc5c99c6caebe713cc24ba0b4b181f Mon Sep 17 00:00:00 2001
From 6af0db7aff392359f865f5201e8b1d89dbcd6913 Mon Sep 17 00:00:00 2001
From: SuicidalKids <[email protected]>
Date: Tue, 15 Sep 2020 05:06:25 +0100
Subject: [PATCH] Explosion Improvements
Expand Down Expand Up @@ -49,7 +49,7 @@ index c4bfd5fe6..03bc6c5ab 100644
this.datawatcher = new DataWatcher(this);
this.datawatcher.a(0, Byte.valueOf((byte) 0));
diff --git a/src/main/java/net/minecraft/server/Explosion.java b/src/main/java/net/minecraft/server/Explosion.java
index f4ccd8d4d..ab6c76118 100644
index f4ccd8d4d..9f33563e9 100644
--- a/src/main/java/net/minecraft/server/Explosion.java
+++ b/src/main/java/net/minecraft/server/Explosion.java
@@ -3,11 +3,8 @@ package net.minecraft.server;
Expand Down Expand Up @@ -78,7 +78,7 @@ index f4ccd8d4d..ab6c76118 100644

if (!this.world.tacoSpigotConfig.optimizeLiquidExplosions || !b.getMaterial().isLiquid()) { //TacoSpigot - skip calculating what blocks to blow up in water/lava
+ boolean protection = false;
+ if (world.ionConfig.explosionProtectedRegions) {
+ if (world.ionConfig.explosionProtectedRegions && source != null) {
+ Location location = new Location(world.getWorld(), posX, posY, posZ);
+
+ List<org.bukkit.block.Block> list = new java.util.ArrayList<>(1);
Expand Down

0 comments on commit cc4767b

Please sign in to comment.