Skip to content

Commit b278a92

Browse files
Don't run player loot table for spectators (#11801)
1 parent d98142e commit b278a92

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

paper-server/patches/sources/net/minecraft/server/level/ServerPlayer.java.patch

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -470,7 +470,7 @@
470470
+ }
471471
+ }
472472
+ }
473-
+ if (this.shouldDropLoot(this.level())) { // Paper - fix player loottables running when mob loot gamerule is false
473+
+ if (!this.isSpectator() && this.shouldDropLoot(this.level())) { // Paper - fix player loottables running when mob loot gamerule is false
474474
+ // SPIGOT-5071: manually add player loot tables (SPIGOT-5195 - ignores keepInventory rule)
475475
+ this.dropFromLootTable(this.level(), damageSource, this.lastHurtByPlayerMemoryTime > 0);
476476
+ // Paper - Restore vanilla drops behaviour; custom death loot is a noop on server player, remove.

0 commit comments

Comments
 (0)