mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-11 21:57:40 +00:00
Fixed timers on the server-side.
This commit is contained in:
1 parent
d1c4adf371
commit
a29058d696
3 files changed
+5
-29
No files matched your search
@@ -354,15 +354,7 @@ public class ScriptPlayer<T extends EntityPlayerMP> extends ScriptLivingBase<T>
|
||||
return new ScriptPixelmonPlayerData(player);
|
||||
}
|
||||
|
||||
private PlayerData getData() {
|
||||
if (this.data == null) {
|
||||
this.data = PlayerData.get(player);
|
||||
}
|
||||
|
||||
return this.data;
|
||||
}
|
||||
|
||||
public ITimers getTimers() {
|
||||
return this.getData().timers;
|
||||
return PlayerDataController.instance.getPlayerData(player).timers;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user