Fixed sum shit

This commit is contained in:
Ceikry
2021-04-01 23:39:29 -05:00
parent c89a771f6d
commit 8ba1784c4e
6 changed files with 51 additions and 365 deletions
@@ -145,6 +145,7 @@ public final class GameAttributes {
*/
@SuppressWarnings("unchecked")
public <T> T getAttribute(String key) {
key = key.replace("/save:","");
if (!attributes.containsKey(key)) {
return null;
}
@@ -304,7 +304,9 @@ public final class WildernessZone extends MapZone {
p.getInterfaceManager().openWildernessOverlay(new Component(381));
p.getSkullManager().setLevel(getWilderness(p));
p.getPacketDispatch().sendString("Level: " + p.getSkullManager().getLevel(), 381, 1);
p.getInteraction().set(Option._P_ATTACK);
if(GameWorld.getSettings().getWild_pvp_enabled()) {
p.getInteraction().set(Option._P_ATTACK);
}
p.getSkullManager().setWilderness(true);
}