Fixed data values for blocks as of 1.8.3.

This commit is contained in:
NavidK0 2015-04-21 16:01:50 -04:00
parent 32f37b74e2
commit 9083a5ba84
3 changed files with 4 additions and 3 deletions

View File

@ -346,7 +346,8 @@ public abstract class BaseDisguiseCommand implements CommandExecutor {
}
optionPermissions = map.get(disguiseType);
HashMap<String, Boolean> disguiseOptions = this.getDisguisePermission(sender, disguiseType);
if (disguiseType.isPlayer()) {// If he is doing a player disguise
if (disguiseType.isPlayer()) {
// If he is doing a player disguise
if (args.length == 1) {
// He needs to give the player name
throw new DisguiseParseException(ChatColor.RED + "Error! You need to give a player name!");

View File

@ -323,7 +323,7 @@ public class PacketsManager {
int id = disguise.getType().getEntityId();
int data = ((MiscDisguise) disguise).getData();
if (disguise.getType() == DisguiseType.FALLING_BLOCK) {
data = (((MiscDisguise) disguise).getId() | data << 16);
data = ((MiscDisguise) disguise).getId() + (data << 12);
} else if (disguise.getType() == DisguiseType.FISHING_HOOK && data == 0) {
// If the MiscDisguise data isn't set. Then no entity id was provided, so default to the owners entity id
data = disguisedEntity.getEntityId();

View File

@ -1,6 +1,6 @@
name: LibsDisguises
main: me.libraryaddict.disguise.LibsDisguises
version: 8.3.2
version: 8.3.3
author: libraryaddict
authors: [Byteflux, Navid K.]
depend: [ProtocolLib]