mirror of
https://github.com/AuthMe/AuthMeReloaded.git
synced 2024-12-24 17:47:38 +01:00
- Quick fix. Safely update player's inventory.
* because it bugs me when i have items with custom NBT Tag
This commit is contained in:
parent
75f64624bb
commit
99704e7c29
@ -70,8 +70,8 @@ public class ProcessSyncPlayerLogin implements SynchronousProcess {
|
|||||||
private void restoreInventory(Player player) {
|
private void restoreInventory(Player player) {
|
||||||
RestoreInventoryEvent event = new RestoreInventoryEvent(player);
|
RestoreInventoryEvent event = new RestoreInventoryEvent(player);
|
||||||
pluginManager.callEvent(event);
|
pluginManager.callEvent(event);
|
||||||
if (!event.isCancelled() && plugin.inventoryProtector != null) {
|
if (!event.isCancelled()) {
|
||||||
plugin.inventoryProtector.sendInventoryPacket(player);
|
player.updateInventory();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user