1
0
Fork 0
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:
Bjarne Koll 2024-06-13 17:16:01 +02:00
parent d7b5168a81
commit c05db66ee6

View file

@ -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
+ }