Convert all getPlayerData() to PlayerData.get()

This commit is contained in:
Kam committed 2025-04-08 22:48:32 -04:00
1 parent 94d9d93360
commit cc148c02d7
59 files changed
+144 -197

No files matched your search

@@ -136,7 +136,7 @@ public class ScriptItemEventHandler {
if (PlayerDataController.Instance != null) {
if (event.action == PlayerInteractEvent.Action.RIGHT_CLICK_AIR) {
PlayerData handler = PlayerDataController.Instance.getPlayerData(event.entityPlayer);
PlayerData handler = PlayerData.get(event.entityPlayer);
if (handler == null)
return;
@@ -155,7 +155,7 @@ public class ScriptItemEventHandler {
} catch (Exception e) {
}
} else if (event.action == PlayerInteractEvent.Action.RIGHT_CLICK_BLOCK) {
PlayerData handler = PlayerDataController.Instance.getPlayerData(event.entityPlayer);
PlayerData handler = PlayerData.get(event.entityPlayer);
if (handler == null)
return;