mirror of
https://github.com/PaperMC/Paper.git
synced 2025-03-20 22:18:58 +01:00
Add skipTripwireHookPlacementValidation (#12091)
This allows for the configuration of tripwire hook duping.
This commit is contained in:
parent
cafef9ce9b
commit
fa5824e4c8
2 changed files with 3 additions and 1 deletions
paper-server
patches/sources/net/minecraft/world/level/block
src/main/java/io/papermc/paper/configuration
|
@ -53,7 +53,7 @@
|
|||
+ if (!cancelledEmitterHook) { // Paper - Call BlockRedstoneEvent
|
||||
emitState(level, pos, flag2, flag3, flag, flag1);
|
||||
if (!attaching) {
|
||||
+ if (level.getBlockState(pos).is(Blocks.TRIPWIRE_HOOK)) // Paper - Validate tripwire hook placement before update
|
||||
+ if (io.papermc.paper.configuration.GlobalConfiguration.get().unsupportedSettings.skipTripwireHookPlacementValidation || level.getBlockState(pos).is(Blocks.TRIPWIRE_HOOK)) // Paper - Validate tripwire hook placement before update
|
||||
level.setBlock(pos, blockState1.setValue(FACING, direction), 3);
|
||||
if (shouldNotifyNeighbours) {
|
||||
notifyNeighbors(block, level, pos, direction);
|
||||
|
|
|
@ -171,6 +171,8 @@ public class GlobalConfiguration extends ConfigurationPart {
|
|||
public class UnsupportedSettings extends ConfigurationPart {
|
||||
@Comment("This setting allows for exploits related to end portals, for example sand duping")
|
||||
public boolean allowUnsafeEndPortalTeleportation = false;
|
||||
@Comment("This setting controls the ability to enable dupes related to tripwires.")
|
||||
public boolean skipTripwireHookPlacementValidation = false;
|
||||
@Comment("This setting controls if players should be able to break bedrock, end portals and other intended to be permanent blocks.")
|
||||
public boolean allowPermanentBlockBreakExploits = false;
|
||||
@Comment("This setting controls if player should be able to use TNT duplication, but this also allows duplicating carpet, rails and potentially other items")
|
||||
|
|
Loading…
Add table
Reference in a new issue