Removed pointless line

This commit is contained in:
NavidK0 2015-07-01 09:17:50 -04:00
parent fc0f313f13
commit ee313bc753
4 changed files with 13 additions and 17 deletions

View File

@ -1,3 +1,7 @@
import java.nio.file.*
import java.nio.file.Path
plugins { plugins {
id 'java' id 'java'
} }
@ -29,19 +33,6 @@ repositories {
} }
} }
tasks.build.doLast {
File export = file('build/libs/LibsDisguises.jar')
File dest = file('dist')
dest.mkdir()
dest.listFiles().each {
it.delete()
}
export.renameTo(new File(dest, "LibsDisguises.jar"))
file('build').delete()
println "Copied LibsDisguises.jar into /dist"
println "LibsDisguises is finished compiling, have a nice day!"
}
file('libs').mkdirs() file('libs').mkdirs()
//Retrieves spigot.jar server file from link //Retrieves spigot.jar server file from link

View File

@ -82,6 +82,8 @@ public class PlayerWatcher extends LivingWatcher {
/** /**
* If no BlockFace is supplied. It grabs it from the entities facing direction if applicable. * If no BlockFace is supplied. It grabs it from the entities facing direction if applicable.
* @param sleeping
* @param sleepingDirection
*/ */
public void setSleeping(boolean sleeping, BlockFace sleepingDirection) { public void setSleeping(boolean sleeping, BlockFace sleepingDirection) {
if (sleepingDirection != null) { if (sleepingDirection != null) {

View File

@ -117,6 +117,10 @@ public class PacketsManager {
/** /**
* Construct the packets I need to spawn in the disguise * Construct the packets I need to spawn in the disguise
* @param player
* @param disguise
* @param disguisedEntity
* @return
*/ */
public static PacketContainer[][] constructSpawnPackets(final Player player, Disguise disguise, Entity disguisedEntity) { public static PacketContainer[][] constructSpawnPackets(final Player player, Disguise disguise, Entity disguisedEntity) {
if (disguise.getEntity() == null) if (disguise.getEntity() == null)
@ -213,7 +217,6 @@ public class PacketsManager {
mods.write(5, pitch); mods.write(5, pitch);
} else if (disguise.getType().isPlayer()) { } else if (disguise.getType().isPlayer()) {
spawnPackets[0] = new PacketContainer(PacketType.Play.Server.NAMED_ENTITY_SPAWN); spawnPackets[0] = new PacketContainer(PacketType.Play.Server.NAMED_ENTITY_SPAWN);
StructureModifier<String> stringMods = spawnPackets[0].getStrings(); StructureModifier<String> stringMods = spawnPackets[0].getStrings();
WrappedGameProfile gameProfile; WrappedGameProfile gameProfile;
@ -285,7 +288,6 @@ public class PacketsManager {
delayedPackets = new PacketContainer[] { delayedPacket }; delayedPackets = new PacketContainer[] { delayedPacket };
} else if (disguise.getType().isMob() || disguise.getType() == DisguiseType.ARMOR_STAND) { } else if (disguise.getType().isMob() || disguise.getType() == DisguiseType.ARMOR_STAND) {
DisguiseValues values = DisguiseValues.getDisguiseValues(disguise.getType()); DisguiseValues values = DisguiseValues.getDisguiseValues(disguise.getType());
Vector vec = disguisedEntity.getVelocity(); Vector vec = disguisedEntity.getVelocity();
spawnPackets[0] = new PacketContainer(PacketType.Play.Server.SPAWN_ENTITY_LIVING); spawnPackets[0] = new PacketContainer(PacketType.Play.Server.SPAWN_ENTITY_LIVING);
@ -324,7 +326,7 @@ public class PacketsManager {
int id = disguise.getType().getEntityId(); int id = disguise.getType().getEntityId();
int data = msc.getData(); int data = msc.getData();
if (disguise.getType() == DisguiseType.FALLING_BLOCK) { if (disguise.getType() == DisguiseType.FALLING_BLOCK) {
data = msc.getId() + (data << 0x12); data = msc.getData(); //No data values for now
} else if (disguise.getType() == DisguiseType.FISHING_HOOK && data == 0) { } 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 // If the MiscDisguise data isn't set. Then no entity id was provided, so default to the owners entity id
data = disguisedEntity.getEntityId(); data = disguisedEntity.getEntityId();
@ -526,6 +528,7 @@ public class PacketsManager {
/** /**
* Creates the packet listeners * Creates the packet listeners
* @param plugin
*/ */
public static void init(LibsDisguises plugin) { public static void init(LibsDisguises plugin) {
libsDisguises = plugin; libsDisguises = plugin;

View File

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