Skip to content
This repository has been archived by the owner on Jun 29, 2023. It is now read-only.

Commit

Permalink
Updated NMS for 1.12
Browse files Browse the repository at this point in the history
Updated NMS for 1.12 that was changed after the prerelease versions.
  • Loading branch information
RadBuilder committed Jun 25, 2017
1 parent f9d8ff3 commit 37310b2
Show file tree
Hide file tree
Showing 9 changed files with 17 additions and 22 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
@@ -1 +1 @@
allprojects { apply plugin: 'java' apply plugin: 'eclipse' apply plugin: 'idea' group = 'be.isach' version = '2.4.7-RELEASE' compileJava.options.encoding = 'UTF-8' sourceCompatibility = 1.8 targetCompatibility = 1.8 configurations { shaded compile.extendsFrom shaded } afterEvaluate { jar { dependsOn configurations.shaded from configurations.shaded.collect { it.isDirectory() ? it : zipTree(it) } } }}boolean local = falseif (local) libsDirName = '/Users/sacha/Documents/Development/Java/UC_1_11/testserver/plugins'dependencies { subprojects.each { p -> shaded(p) { transitive false } }}subprojects { repositories { mavenLocal() mavenCentral() // Vault maven { url 'http://nexus.hc.to/content/repositories/pub_releases' } // Lib's Disguises maven { url 'http://repo.md-5.net/content/groups/public/' } // Spigot maven { url 'http://repo.isach.be' } // BungeeCord maven { url 'https://oss.sonatype.org/content/repositories/snapshots' } }}
allprojects { apply plugin: 'java' apply plugin: 'eclipse' apply plugin: 'idea' group = 'be.isach' version = '2.4.8-RELEASE' compileJava.options.encoding = 'UTF-8' sourceCompatibility = 1.8 targetCompatibility = 1.8 configurations { shaded compile.extendsFrom shaded } afterEvaluate { jar { dependsOn configurations.shaded from configurations.shaded.collect { it.isDirectory() ? it : zipTree(it) } } }}boolean local = falseif (local) libsDirName = '/Users/sacha/Documents/Development/Java/UC_1_11/testserver/plugins'dependencies { subprojects.each { p -> shaded(p) { transitive false } }}subprojects { repositories { mavenLocal() mavenCentral() // Vault maven { url 'http://nexus.hc.to/content/repositories/pub_releases' } // Lib's Disguises maven { url 'http://repo.md-5.net/content/groups/public/' } // Spigot maven { url 'http://repo.isach.be' } // BungeeCord maven { url 'https://oss.sonatype.org/content/repositories/snapshots' } }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,9 @@ public String getName() {


@Override
protected SoundEffect cd() {
protected SoundEffect cf() {
if (custom) return null;
else return super.cd();
else return super.cf();
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ public void a(float sideMot, float forMot, float f2) {
return;
}
EntityHuman passenger = null;
if (!bD().isEmpty()) {
passenger = (EntityHuman) bD().get(0);
if (!bF().isEmpty()) {
passenger = (EntityHuman) bF().get(0);
}
ride(sideMot, forMot, passenger, this);
}
Expand Down Expand Up @@ -119,7 +119,6 @@ static void ride(float sideMot, float forMot, EntityHuman passenger, EntityInsen

entityBase.g_(sideMot, forMot);
}

}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ public void a(float sideMot, float forMot, float f2) {
return;
}
EntityHuman passenger = null;
if (!bD().isEmpty()) {
passenger = (EntityHuman) bD().get(0);
if (!bF().isEmpty()) {
passenger = (EntityHuman) bF().get(0);
}
ride(sideMot, forMot, passenger, this);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,15 +53,15 @@ protected SoundEffect d(DamageSource damageSource) { // Hurt
}

@Override
protected SoundEffect cd() { // Death
protected SoundEffect cf() { // Death
if (isCustomEntity()) return null;
else return super.cd();
else return super.cf();
}

@Override
protected SoundEffect dk() { // Step
protected SoundEffect dm() { // Step
if (isCustomEntity()) return null;
else return super.dk();
else return super.dm();
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ public void a(float sideMot, float forMot, float f2) {
}

EntityHuman passenger = null;
if (!bD().isEmpty()) {
passenger = (EntityHuman) bD().get(0);
if (!bF().isEmpty()) {
passenger = (EntityHuman) bF().get(0);
}
ride(sideMot, forMot, passenger, this);
}
Expand Down Expand Up @@ -112,15 +112,12 @@ static void ride(float sideMot, float forMot, EntityHuman passenger, EntityInsen

wEntity.setLimbSwingAmount(wEntity.getLimbSwingAmount() + (f4 - wEntity.getLimbSwingAmount()) * 0.4f);
wEntity.setLimbSwing(wEntity.getLimbSwing() + wEntity.getLimbSwingAmount());
} else

{
} else {
wEntity.setStepHeight(0.5f);
wEntity.setJumpMovementFactor(0.02f);

entityBase.g_(sideMot, forMot);
}

}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,5 +40,4 @@ public <T> void setField(String name, Class<?> fieldClass, T value) {
}

public Object getHandle() { return handle; }

}
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public WrapperEntity(Entity handle) {

public void setStepHeight(float stepHeight) { handle.P = stepHeight; }

public boolean canPassengerSteer() { return handle.bG(); }
public boolean canPassengerSteer() { return handle.bI(); }

public Entity getHandle() { return handle; }

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,9 @@ public WrapperEntityLiving(EntityLiving handle) {

public void setLimbSwing(float limbSwing) { handle.aH = limbSwing; }

public float getMoveSpeed() { return handle.cw(); }
public float getMoveSpeed() { return handle.cy(); }

public void setMoveSpeed(float moveSpeed) { handle.m(moveSpeed); }
public void setMoveSpeed(float moveSpeed) { handle.k(moveSpeed); }

@Override
public EntityLiving getHandle() { return handle; }
Expand Down

0 comments on commit 37310b2

Please sign in to comment.