3
0
Mirror von https://github.com/PaperMC/Paper.git synchronisiert 2025-01-05 12:51:06 +01:00
Commit graph

1 Commits

Autor SHA1 Nachricht Datum
MrPowerGamerBR
faa2f475b0
Lazily create LootContext for criterions (#9969)
For each player on each tick, enter block triggers are invoked, and these create loot contexts that are promptly thrown away since the trigger doesn't pass the predicate

To avoid this, we now lazily create the LootContext if the criterion passes the predicate AND if any of the listener triggers require a loot context instance
2023-11-25 17:01:26 -05:00