mirror of
https://github.com/2006-Scape/apollo.git
synced 2026-07-03 08:39:11 +00:00
Minor definition updates.
This commit is contained in:
@@ -154,7 +154,7 @@ public final class PlayerSynchronizationEventEncoder extends EventEncoder<Player
|
||||
}
|
||||
|
||||
if (chest != null) {
|
||||
EquipmentDefinition def = EquipmentDefinition.forId(chest.getId());
|
||||
EquipmentDefinition def = EquipmentDefinition.lookup(chest.getId());
|
||||
if (def != null && !def.isFullBody()) {
|
||||
playerProperties.put(DataType.SHORT, 0x100 + style[3]);
|
||||
} else {
|
||||
@@ -171,7 +171,7 @@ public final class PlayerSynchronizationEventEncoder extends EventEncoder<Player
|
||||
}
|
||||
|
||||
if ((helm = equipment.get(EquipmentConstants.HAT)) != null) {
|
||||
EquipmentDefinition def = EquipmentDefinition.forId(helm.getId());
|
||||
EquipmentDefinition def = EquipmentDefinition.lookup(helm.getId());
|
||||
if (def != null && !def.isFullHat() && !def.isFullMask()) {
|
||||
playerProperties.put(DataType.SHORT, 0x100 + style[0]);
|
||||
} else {
|
||||
@@ -195,7 +195,7 @@ public final class PlayerSynchronizationEventEncoder extends EventEncoder<Player
|
||||
|
||||
EquipmentDefinition def = null;
|
||||
if (helm != null) {
|
||||
def = EquipmentDefinition.forId(helm.getId());
|
||||
def = EquipmentDefinition.lookup(helm.getId());
|
||||
}
|
||||
if (def != null && (def.isFullHat() || def.isFullMask()) || appearance.getGender() == Gender.FEMALE) {
|
||||
playerProperties.put(DataType.BYTE, 0);
|
||||
|
||||
Reference in New Issue
Block a user