mirror of
https://github.com/libraryaddict/LibsDisguises.git
synced 2024-11-04 08:59:47 +01:00
Fixed block data for FallingBlock disguises
This commit is contained in:
parent
f4ec0fc6f6
commit
aee904200b
12
build.gradle
12
build.gradle
@ -13,6 +13,8 @@ println 'Compiling LibsDisguises via Gradle ver. ' + gradle.gradleVersion
|
||||
sourceCompatibility = '1.7'
|
||||
ext.spigotVersion = '1.8.7-R0.1-SNAPSHOT'
|
||||
|
||||
ext.disguisesVersion = '8.5.1'
|
||||
|
||||
[compileJava, compileTestJava]*.options*.encoding = 'UTF-8'
|
||||
|
||||
repositories {
|
||||
@ -40,7 +42,7 @@ task sourceJar (type : Jar, dependsOn: classes) {
|
||||
from sourceSets.main.allSource
|
||||
}
|
||||
|
||||
task javadocJar (type: Jar, dependsOn: javadoc) { // (1)
|
||||
task javadocJar (type: Jar, dependsOn: javadoc) {
|
||||
classifier = 'javadoc'
|
||||
from javadoc.destinationDir
|
||||
}
|
||||
@ -60,12 +62,12 @@ publishing {
|
||||
mavenJava(MavenPublication) {
|
||||
groupId 'LibsDisguises'
|
||||
artifactId 'LibsDisguises'
|
||||
version '8.5-SNAPSHOT'
|
||||
version disguisesVersion + '-SNAPSHOT'
|
||||
from components.java
|
||||
artifact (sourceJar) {
|
||||
artifact sourceJar {
|
||||
classifier = 'sources'
|
||||
}
|
||||
artifact (javadocJar) {
|
||||
artifact javadocJar {
|
||||
classifier = 'javadoc'
|
||||
}
|
||||
}
|
||||
@ -84,7 +86,7 @@ artifactory {
|
||||
}
|
||||
defaults {
|
||||
publications('mavenJava')
|
||||
}
|
||||
}
|
||||
}
|
||||
resolve {
|
||||
repoKey = 'repo'
|
||||
|
@ -320,13 +320,12 @@ public class PacketsManager {
|
||||
mods.write(9, pitch);
|
||||
spawnPackets[0].getDataWatcherModifier().write(0,
|
||||
createDataWatcher(player, WrappedDataWatcher.getEntityWatcher(disguisedEntity), disguise.getWatcher()));
|
||||
|
||||
} else if (disguise.getType().isMisc()) {
|
||||
MiscDisguise msc = (MiscDisguise)disguise;
|
||||
int id = disguise.getType().getEntityId();
|
||||
int data = msc.getData();
|
||||
if (disguise.getType() == DisguiseType.FALLING_BLOCK) {
|
||||
data = msc.getData(); //No data values for now, switch to NBT only has been painful
|
||||
data = msc.getId() + (msc.getData() << 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();
|
||||
|
@ -1,6 +1,6 @@
|
||||
name: LibsDisguises
|
||||
main: me.libraryaddict.disguise.LibsDisguises
|
||||
version: 8.5
|
||||
version: 8.5.1
|
||||
author: libraryaddict
|
||||
authors: [Byteflux, Navid K.]
|
||||
depend: [ProtocolLib]
|
||||
|
Loading…
Reference in New Issue
Block a user