Fixed sending data on a flagwatcher not taking their real metadata into account when its adding metadata

This commit is contained in:
libraryaddict
2014-05-24 05:14:14 +12:00
parent 0f09a92e75
commit 19aabb2656
2 changed files with 19 additions and 11 deletions

View File

@@ -1303,7 +1303,7 @@ public class PacketsManager {
// Convert the datawatcher
List<WrappedWatchableObject> list = new ArrayList<WrappedWatchableObject>();
if (DisguiseConfig.isMetadataPacketsEnabled()) {
list.add(new WrappedWatchableObject(0, WrappedDataWatcher.getEntityWatcher(entity).getObject(0)));
list.add(new WrappedWatchableObject(0, WrappedDataWatcher.getEntityWatcher(entity).getByte(0)));
list = disguise.getWatcher().convert(list);
} else {
for (WrappedWatchableObject obj : disguise.getWatcher().getWatchableObjects()) {