From be464edaf2b6e3d467b00c67f0ba0379cbf1415b Mon Sep 17 00:00:00 2001 From: Nassim Jahnke Date: Fri, 12 Jul 2024 09:24:37 +0200 Subject: [PATCH] Add light block to indestructible block list --- .../Protect-Bedrock-and-End-Portal-Frames-from-being-des.patch | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/patches/server/Protect-Bedrock-and-End-Portal-Frames-from-being-des.patch b/patches/server/Protect-Bedrock-and-End-Portal-Frames-from-being-des.patch index 8bb502418..bd4ea2895 100644 --- a/patches/server/Protect-Bedrock-and-End-Portal-Frames-from-being-des.patch +++ b/patches/server/Protect-Bedrock-and-End-Portal-Frames-from-being-des.patch @@ -49,6 +49,8 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000 // Paper start + public final boolean isDestroyable() { + return io.papermc.paper.configuration.GlobalConfiguration.get().unsupportedSettings.allowPermanentBlockBreakExploits || ++ this != Blocks.BARRIER && ++ this != Blocks.LIGHT && + this != Blocks.BEDROCK && + this != Blocks.END_PORTAL_FRAME && + this != Blocks.END_PORTAL && @@ -56,7 +58,6 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000 + this != Blocks.COMMAND_BLOCK && + this != Blocks.REPEATING_COMMAND_BLOCK && + this != Blocks.CHAIN_COMMAND_BLOCK && -+ this != Blocks.BARRIER && + this != Blocks.STRUCTURE_BLOCK && + this != Blocks.JIGSAW; + }