rename method to what it actually does

This commit is contained in:
Pyrbu 2023-07-24 02:04:56 +02:00
parent 993cd10b7a
commit 792b962e49
2 changed files with 2 additions and 2 deletions

@ -48,7 +48,7 @@ public abstract class EntityPropertyImpl<T> implements EntityProperty<T> {
abstract public void apply(T value, Player player, PacketEntity entity, boolean isSpawned, Map<Integer, EntityData> properties);
@SuppressWarnings("unchecked")
public void UNSAFE_update(Object value, Player player, PacketEntity entity, boolean isSpawned, Map<Integer, EntityData> properties) {
public void UNSAFE_apply(Object value, Player player, PacketEntity entity, boolean isSpawned, Map<Integer, EntityData> properties) {
apply((T) value, player, entity, isSpawned, properties);
}
}

@ -250,7 +250,7 @@ public class V1_8PacketFactory implements PacketFactory {
public void sendAllMetadata(Player player, PacketEntity entity, PropertyHolder properties) {
Map<Integer, EntityData> datas = new HashMap<>();
for (EntityProperty<?> property : properties.getAppliedProperties())
((EntityPropertyImpl<?>) property).UNSAFE_update(properties.getProperty(property), player, entity, false, datas);
((EntityPropertyImpl<?>) property).UNSAFE_apply(properties.getProperty(property), player, entity, false, datas);
sendMetadata(player, entity, new ArrayList<>(datas.values()));
}