Changed method name

This commit is contained in:
Indyuce 2022-08-17 18:08:54 +02:00
parent 4be6d7f1f8
commit 81408d8e2f

View File

@ -72,7 +72,7 @@ public class MMOCoreHook implements RPGHandler, Listener {
* Fixes https://gitlab.com/phoenix-dvpmt/mmocore/-/issues/545 * Fixes https://gitlab.com/phoenix-dvpmt/mmocore/-/issues/545
*/ */
@EventHandler @EventHandler
public void updateInventoryOnClassChange(AsyncPlayerDataLoadEvent event) { public void updateInventoryOnLoad(AsyncPlayerDataLoadEvent event) {
if (net.Indyuce.mmoitems.api.player.PlayerData.has(event.getPlayer())) if (net.Indyuce.mmoitems.api.player.PlayerData.has(event.getPlayer()))
net.Indyuce.mmoitems.api.player.PlayerData.get(event.getPlayer()).getInventory().scheduleUpdate(); net.Indyuce.mmoitems.api.player.PlayerData.get(event.getPlayer()).getInventory().scheduleUpdate();
} }