mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-18 04:35:03 +00:00
Convert all getPlayerData() to PlayerData.get()
This commit is contained in:
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;
|
||||
|
||||
|
||||
Reference in new issue
Block a user