mirror of
https://github.com/PaperMC/Paper.git
synced 2025-02-17 02:34:30 +01:00
Configurable damage tick when blocking with shield
This commit is contained in:
parent
d7b5168a81
commit
c05db66ee6
1 changed files with 1 additions and 1 deletions
|
@ -1284,7 +1284,7 @@
|
|||
+ CriteriaTriggers.PLAYER_HURT_ENTITY.trigger((ServerPlayer) damagesource.getEntity(), this, damagesource, originalDamage, f, true); // Paper - fix taken/dealt param order
|
||||
+ }
|
||||
+
|
||||
+ return true;
|
||||
+ return !io.papermc.paper.configuration.GlobalConfiguration.get().unsupportedSettings.skipVanillaDamageTickWhenShieldBlocked; // Paper - this should always return true, however expose an unsupported setting to flip this to false to enable "shield stunning".
|
||||
+ } else {
|
||||
+ return true; // Paper - return false ONLY if event was cancelled
|
||||
+ }
|
||||
|
|
Loading…
Add table
Reference in a new issue