From f77f5c48ec91923c3462bff432ba97e1eeea8e45 Mon Sep 17 00:00:00 2001 From: libraryaddict Date: Wed, 17 Sep 2014 04:01:48 +1200 Subject: [PATCH] Added note for future changes to minecarts and datawatchers. Tho I doubt it will ever fruit. --- .../disguise/utilities/DisguiseUtilities.java | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/src/me/libraryaddict/disguise/utilities/DisguiseUtilities.java b/src/me/libraryaddict/disguise/utilities/DisguiseUtilities.java index b0eb0256..c3f14cd7 100644 --- a/src/me/libraryaddict/disguise/utilities/DisguiseUtilities.java +++ b/src/me/libraryaddict/disguise/utilities/DisguiseUtilities.java @@ -25,6 +25,7 @@ import me.libraryaddict.disguise.disguisetypes.TargetedDisguise; import me.libraryaddict.disguise.disguisetypes.watchers.AgeableWatcher; import me.libraryaddict.disguise.disguisetypes.watchers.EndermanWatcher; import me.libraryaddict.disguise.disguisetypes.watchers.ItemFrameWatcher; +import me.libraryaddict.disguise.disguisetypes.watchers.MinecartWatcher; import me.libraryaddict.disguise.disguisetypes.watchers.PlayerWatcher; import me.libraryaddict.disguise.disguisetypes.watchers.ZombieWatcher; import me.libraryaddict.disguise.disguisetypes.TargetedDisguise.TargetType; @@ -582,6 +583,13 @@ public class DisguiseUtilities { return ReflectionManager.getSkullBlob(gameprofile); } + /** + * Please note that in the future when 'DualInt' and the like are removed. This should break.. + * + * However, that should be negated in the future as I'd be able to set the watcher index's as per the spigot version. + * + * Instead of checking on the player's version every single packet.. + */ public static List rebuildForVersion(Player player, FlagWatcher watcher, List list) { if (!ReflectionManager.is1_8(player)) @@ -622,6 +630,13 @@ public class DisguiseUtilities { backups.add(obj); } break; + case 20: + if (watcher instanceof MinecartWatcher) { + // TODO + backups.add(obj); + } else { + backups.add(obj); + } default: backups.add(obj); break;