Fix getters not updated
This commit is contained in:
parent
4092737259
commit
dc066a07dd
@ -27,7 +27,7 @@ import java.lang.reflect.InvocationTargetException;
|
||||
import java.util.*;
|
||||
|
||||
public class FlagWatcher {
|
||||
private boolean addEntityAnimations = DisguiseConfig.isEntityAnimationsAdded();
|
||||
private boolean addEntityAnimations = DisguiseConfig.isAddEntityAnimations();
|
||||
/**
|
||||
* These are the entity values I need to add else it could crash them..
|
||||
*/
|
||||
@ -355,7 +355,7 @@ public class FlagWatcher {
|
||||
|
||||
Object value = entityValues.get(data.getIndex());
|
||||
|
||||
if (isEntityAnimationsAdded() && DisguiseConfig.isMetadataPacketsEnabled() &&
|
||||
if (isEntityAnimationsAdded() && DisguiseConfig.isMetaPacketsEnabled() &&
|
||||
data == MetaIndex.ENTITY_META) {
|
||||
value = addEntityAnimations((byte) value,
|
||||
WrappedDataWatcher.getEntityWatcher(disguise.getEntity()).getByte(0));
|
||||
@ -611,7 +611,7 @@ public class FlagWatcher {
|
||||
|
||||
entityValues.put(id.getIndex(), value);
|
||||
|
||||
if (!DisguiseConfig.isMetadataPacketsEnabled()) {
|
||||
if (!DisguiseConfig.isMetaPacketsEnabled()) {
|
||||
rebuildWatchableObjects();
|
||||
}
|
||||
}
|
||||
|
@ -74,7 +74,7 @@ public class PacketHandlerEquipment implements IPacketHandler {
|
||||
// Convert the datawatcher
|
||||
List<WrappedWatchableObject> list = new ArrayList<>();
|
||||
|
||||
if (DisguiseConfig.isMetadataPacketsEnabled()) {
|
||||
if (DisguiseConfig.isMetaPacketsEnabled()) {
|
||||
WrappedWatchableObject watch = ReflectionManager.createWatchable(MetaIndex.ENTITY_META,
|
||||
WrappedDataWatcher.getEntityWatcher(entity).getByte(0));
|
||||
|
||||
|
@ -35,7 +35,7 @@ public class PacketHandlerMetadata implements IPacketHandler {
|
||||
|
||||
packets.clear();
|
||||
|
||||
if (DisguiseConfig.isMetadataPacketsEnabled() && !packetsHandler.isCancelMeta(disguise, observer)) {
|
||||
if (DisguiseConfig.isMetaPacketsEnabled() && !packetsHandler.isCancelMeta(disguise, observer)) {
|
||||
List<WrappedWatchableObject> watchableObjects = disguise.getWatcher()
|
||||
.convert(sentPacket.getWatchableCollectionModifier().read(0));
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user