mirror of
https://github.com/PurpurMC/Purpur.git
synced 2026-02-17 16:37:43 +01:00
25 lines
1.2 KiB
Diff
25 lines
1.2 KiB
Diff
From 243154bb0369a788ac328dafc608775ec3c6516b Mon Sep 17 00:00:00 2001
|
|
From: William Blake Galbreath <blake.galbreath@gmail.com>
|
|
Date: Sat, 19 Oct 2019 02:43:17 -0500
|
|
Subject: [PATCH] Add LootableInventoryFirstFillEvent
|
|
|
|
---
|
|
.../paper/loottable/PaperLootableInventoryData.java | 1 +
|
|
1 file changed, 1 insertion(+)
|
|
|
|
diff --git a/src/main/java/com/destroystokyo/paper/loottable/PaperLootableInventoryData.java b/src/main/java/com/destroystokyo/paper/loottable/PaperLootableInventoryData.java
|
|
index b5401eaf97..25a92d4bb8 100644
|
|
--- a/src/main/java/com/destroystokyo/paper/loottable/PaperLootableInventoryData.java
|
|
+++ b/src/main/java/com/destroystokyo/paper/loottable/PaperLootableInventoryData.java
|
|
@@ -49,6 +49,7 @@ public class PaperLootableInventoryData {
|
|
|
|
// ALWAYS process the first fill or if the feature is disabled
|
|
if (this.lastFill == -1 || !this.lootable.getNMSWorld().paperConfig.autoReplenishLootables) {
|
|
+ new net.pl3x.purpur.event.block.LootableInventoryFirstFillEvent(player == null ? null : (Player) player.getBukkitEntity(), lootable.getAPILootableInventory()); // Purpur
|
|
return true;
|
|
}
|
|
|
|
--
|
|
2.24.0.rc1
|
|
|