mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-07 07:32:03 -07:00
Add light block to indestructible block list
This commit is contained in:
@@ -49,6 +49,8 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
|||||||
// Paper start
|
// Paper start
|
||||||
+ public final boolean isDestroyable() {
|
+ public final boolean isDestroyable() {
|
||||||
+ return io.papermc.paper.configuration.GlobalConfiguration.get().unsupportedSettings.allowPermanentBlockBreakExploits ||
|
+ return io.papermc.paper.configuration.GlobalConfiguration.get().unsupportedSettings.allowPermanentBlockBreakExploits ||
|
||||||
|
+ this != Blocks.BARRIER &&
|
||||||
|
+ this != Blocks.LIGHT &&
|
||||||
+ this != Blocks.BEDROCK &&
|
+ this != Blocks.BEDROCK &&
|
||||||
+ this != Blocks.END_PORTAL_FRAME &&
|
+ this != Blocks.END_PORTAL_FRAME &&
|
||||||
+ this != Blocks.END_PORTAL &&
|
+ this != Blocks.END_PORTAL &&
|
||||||
@@ -56,7 +58,6 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
|||||||
+ this != Blocks.COMMAND_BLOCK &&
|
+ this != Blocks.COMMAND_BLOCK &&
|
||||||
+ this != Blocks.REPEATING_COMMAND_BLOCK &&
|
+ this != Blocks.REPEATING_COMMAND_BLOCK &&
|
||||||
+ this != Blocks.CHAIN_COMMAND_BLOCK &&
|
+ this != Blocks.CHAIN_COMMAND_BLOCK &&
|
||||||
+ this != Blocks.BARRIER &&
|
|
||||||
+ this != Blocks.STRUCTURE_BLOCK &&
|
+ this != Blocks.STRUCTURE_BLOCK &&
|
||||||
+ this != Blocks.JIGSAW;
|
+ this != Blocks.JIGSAW;
|
||||||
+ }
|
+ }
|
||||||
|
Reference in New Issue
Block a user