From 94f5eccba1d52a5b6ec1d10347fc8b09ae45129a Mon Sep 17 00:00:00 2001 From: libraryaddict Date: Wed, 30 Jul 2014 19:53:44 +1200 Subject: [PATCH] Return a miscDisguise not playerdisguise when calling addplayer on miscdisguise --- src/me/libraryaddict/disguise/disguisetypes/MiscDisguise.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/me/libraryaddict/disguise/disguisetypes/MiscDisguise.java b/src/me/libraryaddict/disguise/disguisetypes/MiscDisguise.java index cc5a15f3..1ab7674b 100644 --- a/src/me/libraryaddict/disguise/disguisetypes/MiscDisguise.java +++ b/src/me/libraryaddict/disguise/disguisetypes/MiscDisguise.java @@ -105,8 +105,8 @@ public class MiscDisguise extends TargetedDisguise { this(DisguiseType.getType(disguiseType), id, data); } - public PlayerDisguise addPlayer(Player player) { - return (PlayerDisguise) super.addPlayer(player); + public MiscDisguise addPlayer(Player player) { + return (MiscDisguise) super.addPlayer(player); } public MiscDisguise addPlayer(String playername) {