Fix NPE when custom code changes a player's HP (#458)
This commit is contained in:
@@ -8605,8 +8605,9 @@ public class MapleCharacter extends AbstractMapleCharacterObject {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
if (map != null) {
|
||||||
map.registerCharacterStatUpdate(r);
|
map.registerCharacterStatUpdate(r);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private Pair<MapleStat, Integer> calcHpRatioUpdate(int newHp, int oldHp) {
|
private Pair<MapleStat, Integer> calcHpRatioUpdate(int newHp, int oldHp) {
|
||||||
|
|||||||
Reference in New Issue
Block a user