Fix getters not updated

This commit is contained in:
libraryaddict 2020-02-02 14:22:46 +13:00
parent 4092737259
commit dc066a07dd
No known key found for this signature in database
GPG Key ID: 052E4FBCD257AEA4
3 changed files with 5 additions and 5 deletions

View File

@ -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();
}
}

View File

@ -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));

View File

@ -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));