Use getOpenStateMap() in PlayerOpenStateManager

This commit is contained in:
Melledy
2022-07-21 01:06:17 -07:00
parent f87088f4f4
commit 7189e3701d

View File

@@ -44,11 +44,11 @@ public class PlayerOpenStateManager extends BasePlayerDataManager {
}
public int getOpenState(OpenState openState) {
return this.map.getOrDefault(openState.getValue(), 0);
return getOpenStateMap().getOrDefault(openState.getValue(), 0);
}
public void setOpenState(OpenState openState, Integer value) {
Integer previousValue = this.map.getOrDefault(openState.getValue(),0);
Integer previousValue = getOpenStateMap().getOrDefault(openState.getValue(),0);
if (value != previousValue) {
this.map.put(openState.getValue(), value);
player.getSession().send(new PacketOpenStateChangeNotify(openState.getValue(),value));