Fixed timers on the server-side.

This commit is contained in:
luisc committed 2021-10-22 02:22:45 -05:00
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;
}
}