From cc4767bc160ec6a373e72b3b0addb4285e163675 Mon Sep 17 00:00:00 2001 From: SK Date: Sat, 17 Jul 2021 18:56:20 +0100 Subject: [PATCH] Fix Protected Regions NPE through API --- TacoSpigot-Server-Patches/0003-Explosion-Improvements.patch | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/TacoSpigot-Server-Patches/0003-Explosion-Improvements.patch b/TacoSpigot-Server-Patches/0003-Explosion-Improvements.patch index 6047c398..23ef39ae 100644 --- a/TacoSpigot-Server-Patches/0003-Explosion-Improvements.patch +++ b/TacoSpigot-Server-Patches/0003-Explosion-Improvements.patch @@ -1,4 +1,4 @@ -From 48b843febecc5c99c6caebe713cc24ba0b4b181f Mon Sep 17 00:00:00 2001 +From 6af0db7aff392359f865f5201e8b1d89dbcd6913 Mon Sep 17 00:00:00 2001 From: SuicidalKids Date: Tue, 15 Sep 2020 05:06:25 +0100 Subject: [PATCH] Explosion Improvements @@ -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; @@ -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 list = new java.util.ArrayList<>(1);