3
0
Mirror von https://github.com/PaperMC/Paper.git synchronisiert 2024-12-18 12:30:06 +01:00

1.8 rename fixes

Dieser Commit ist enthalten in:
Dinnerbone 2011-09-15 04:13:14 +01:00
Ursprung 6e44626d0a
Commit ca57a1a1af
6 geänderte Dateien mit 22 neuen und 38 gelöschten Zeilen

Datei anzeigen

@ -39,7 +39,7 @@
<dependency> <dependency>
<groupId>org.bukkit</groupId> <groupId>org.bukkit</groupId>
<artifactId>minecraft-server</artifactId> <artifactId>minecraft-server</artifactId>
<version>1.8</version> <version>1.8_01</version>
<type>jar</type> <type>jar</type>
<scope>compile</scope> <scope>compile</scope>
</dependency> </dependency>

Datei anzeigen

@ -89,7 +89,7 @@ public class Chunk {
public void a() {} public void a() {}
public void initLighting() { public void initLighting() {
this.world.getClass();
int i = 128 - 1; int i = 128 - 1;
int j; int j;
@ -97,14 +97,11 @@ public class Chunk {
for (j = 0; j < 16; ++j) { for (j = 0; j < 16; ++j) {
for (k = 0; k < 16; ++k) { for (k = 0; k < 16; ++k) {
this.world.getClass();
int l = 128 - 1; int l = 128 - 1;
this.world.getClass();
int i1 = j << 11; int i1 = j << 11;
this.world.getClass();
int j1; int j1;
for (j1 = i1 | k << 7; l > 0 && Block.q[this.b[j1 + l - 1] & 255] == 0; --l) { for (j1 = i1 | k << 7; l > 0 && Block.q[this.b[j1 + l - 1] & 255] == 0; --l) {
@ -119,7 +116,6 @@ public class Chunk {
if (!this.world.worldProvider.e) { if (!this.world.worldProvider.e) {
int k1 = 15; int k1 = 15;
this.world.getClass();
int l1 = 128 - 1; int l1 = 128 - 1;
do { do {
@ -155,7 +151,6 @@ public class Chunk {
World j0000 = this.world; World j0000 = this.world;
int j0001 = this.x * 16 + 8; int j0001 = this.x * 16 + 8;
this.world.getClass();
if (j0000.areChunksLoaded(j0001, 128 / 2, this.z * 16 + 8, 16)) { if (j0000.areChunksLoaded(j0001, 128 / 2, this.z * 16 + 8, 16)) {
for (int j = 0; j < 16; ++j) { for (int j = 0; j < 16; ++j) {
for (int k = 0; k < 16; ++k) { for (int k = 0; k < 16; ++k) {
@ -208,7 +203,6 @@ public class Chunk {
if (l > k) { if (l > k) {
World world = this.world; World world = this.world;
this.world.getClass();
if (world.areChunksLoaded(i, 128 / 2, j, 16)) { if (world.areChunksLoaded(i, 128 / 2, j, 16)) {
for (int i1 = k; i1 < l; ++i1) { for (int i1 = k; i1 < l; ++i1) {
this.world.b(EnumSkyBlock.SKY, i, i1, j); this.world.b(EnumSkyBlock.SKY, i, i1, j);
@ -226,12 +220,10 @@ public class Chunk {
if (j > l) { if (j > l) {
i1 = j; i1 = j;
} }
//
this.world.getClass(); this.world.getClass();
int j1 = i << 11; int j1 = i << 11;
this.world.getClass();
for (int k1 = j1 | k << 7; i1 > 0 && Block.q[this.b[k1 + i1 - 1] & 255] == 0; --i1) { for (int k1 = j1 | k << 7; i1 > 0 && Block.q[this.b[k1 + i1 - 1] & 255] == 0; --i1) {
; ;
} }
@ -246,7 +238,7 @@ public class Chunk {
if (i1 < this.k) { if (i1 < this.k) {
this.k = i1; this.k = i1;
} else { } else {
this.world.getClass();
l1 = 128 - 1; l1 = 128 - 1;
for (i2 = 0; i2 < 16; ++i2) { for (i2 = 0; i2 < 16; ++i2) {
@ -307,10 +299,8 @@ public class Chunk {
public int getTypeId(int i, int j, int k) { public int getTypeId(int i, int j, int k) {
byte[] abyte = this.b; byte[] abyte = this.b;
this.world.getClass();
int l = i << 11; int l = i << 11;
this.world.getClass();
return abyte[l | k << 7 | j] & 255; return abyte[l | k << 7 | j] & 255;
} }
@ -325,10 +315,8 @@ public class Chunk {
int k1 = this.heightMap[k << 4 | i] & 255; int k1 = this.heightMap[k << 4 | i] & 255;
byte[] j2000 = this.b; byte[] j2000 = this.b;
this.world.getClass();
int j2001 = i << 11; int j2001 = i << 11;
this.world.getClass();
int i2 = j2000[j2001 | k << 7 | j] & 255; int i2 = j2000[j2001 | k << 7 | j] & 255;
if (i2 == l && this.g.a(i, j, k) == i1) { if (i2 == l && this.g.a(i, j, k) == i1) {
@ -338,9 +326,9 @@ public class Chunk {
int k2 = this.z * 16 + k; int k2 = this.z * 16 + k;
j2000 = this.b; j2000 = this.b;
this.world.getClass();
j2001 = i << 11; j2001 = i << 11;
this.world.getClass();
j2000[j2001 | k << 7 | j] = (byte) (b0 & 255); j2000[j2001 | k << 7 | j] = (byte) (b0 & 255);
if (i2 != 0 && !this.world.isStatic) { if (i2 != 0 && !this.world.isStatic) {
Block.byId[i2].remove(this.world, j2, j, k2); Block.byId[i2].remove(this.world, j2, j, k2);
@ -403,10 +391,8 @@ public class Chunk {
int j1 = this.heightMap[i1] & 255; int j1 = this.heightMap[i1] & 255;
byte[] j2000 = this.b; byte[] j2000 = this.b;
this.world.getClass();
int j2001 = i << 11; int j2001 = i << 11;
this.world.getClass();
int l1 = j2000[j2001 | k << 7 | j] & 255; int l1 = j2000[j2001 | k << 7 | j] & 255;
if (l1 == l) { if (l1 == l) {
@ -416,9 +402,9 @@ public class Chunk {
int j2 = this.z * 16 + k; int j2 = this.z * 16 + k;
j2000 = this.b; j2000 = this.b;
this.world.getClass();
j2001 = i << 11; j2001 = i << 11;
this.world.getClass();
j2000[j2001 | k << 7 | j] = (byte) (b0 & 255); j2000[j2001 | k << 7 | j] = (byte) (b0 & 255);
if (l1 != 0) { if (l1 != 0) {
Block.byId[l1].remove(this.world, i2, j, j2); Block.byId[l1].remove(this.world, i2, j, j2);
@ -766,9 +752,9 @@ public class Chunk {
for (k2 = i; k2 < l; ++k2) { for (k2 = i; k2 < l; ++k2) {
for (i3 = k; i3 < j1; ++i3) { for (i3 = k; i3 < j1; ++i3) {
this.world.getClass();
l2 = k2 << 11; l2 = k2 << 11;
this.world.getClass();
j3 = l2 | i3 << 7 | j; j3 = l2 | i3 << 7 | j;
k3 = i1 - j; k3 = i1 - j;
System.arraycopy(this.b, j3, abyte, k1, k3); System.arraycopy(this.b, j3, abyte, k1, k3);
@ -778,9 +764,9 @@ public class Chunk {
for (k2 = i; k2 < l; ++k2) { for (k2 = i; k2 < l; ++k2) {
for (i3 = k; i3 < j1; ++i3) { for (i3 = k; i3 < j1; ++i3) {
this.world.getClass();
l2 = k2 << 11; l2 = k2 << 11;
this.world.getClass();
j3 = (l2 | i3 << 7 | j) >> 1; j3 = (l2 | i3 << 7 | j) >> 1;
k3 = (i1 - j) / 2; k3 = (i1 - j) / 2;
System.arraycopy(this.g.a, j3, abyte, k1, k3); System.arraycopy(this.g.a, j3, abyte, k1, k3);
@ -790,9 +776,9 @@ public class Chunk {
for (k2 = i; k2 < l; ++k2) { for (k2 = i; k2 < l; ++k2) {
for (i3 = k; i3 < j1; ++i3) { for (i3 = k; i3 < j1; ++i3) {
this.world.getClass();
l2 = k2 << 11; l2 = k2 << 11;
this.world.getClass();
j3 = (l2 | i3 << 7 | j) >> 1; j3 = (l2 | i3 << 7 | j) >> 1;
k3 = (i1 - j) / 2; k3 = (i1 - j) / 2;
System.arraycopy(this.i.a, j3, abyte, k1, k3); System.arraycopy(this.i.a, j3, abyte, k1, k3);
@ -802,9 +788,9 @@ public class Chunk {
for (k2 = i; k2 < l; ++k2) { for (k2 = i; k2 < l; ++k2) {
for (i3 = k; i3 < j1; ++i3) { for (i3 = k; i3 < j1; ++i3) {
this.world.getClass();
l2 = k2 << 11; l2 = k2 << 11;
this.world.getClass();
j3 = (l2 | i3 << 7 | j) >> 1; j3 = (l2 | i3 << 7 | j) >> 1;
k3 = (i1 - j) / 2; k3 = (i1 - j) / 2;
System.arraycopy(this.h.a, j3, abyte, k1, k3); System.arraycopy(this.h.a, j3, abyte, k1, k3);
@ -847,7 +833,7 @@ public class Chunk {
int l = this.c[k]; int l = this.c[k];
if (l == -999) { if (l == -999) {
this.world.getClass();
int i1 = 128 - 1; int i1 = 128 - 1;
l = -1; l = -1;

Datei anzeigen

@ -739,7 +739,6 @@ public abstract class Entity {
int j = MathHelper.floor(this.locZ); int j = MathHelper.floor(this.locZ);
World world = this.world; World world = this.world;
this.world.getClass();
if (world.isLoaded(i, 128 / 2, j)) { if (world.isLoaded(i, 128 / 2, j)) {
double d0 = (this.boundingBox.e - this.boundingBox.b) * 0.66D; double d0 = (this.boundingBox.e - this.boundingBox.b) * 0.66D;
int k = MathHelper.floor(this.locY - (double) this.height + d0); int k = MathHelper.floor(this.locY - (double) this.height + d0);

Datei anzeigen

@ -249,7 +249,7 @@ public class EntityPainting extends Entity {
this.b(this.a); this.b(this.a);
} }
public void a_(double d0, double d1, double d2) { public void move(double d0, double d1, double d2) {
if (!this.world.isStatic && d0 * d0 + d1 * d1 + d2 * d2 > 0.0D) { if (!this.world.isStatic && d0 * d0 + d1 * d1 + d2 * d2 > 0.0D) {
this.die(); this.die();
this.world.addEntity(new EntityItem(this.world, this.locX, this.locY, this.locZ, new ItemStack(Item.PAINTING))); this.world.addEntity(new EntityItem(this.world, this.locX, this.locY, this.locZ, new ItemStack(Item.PAINTING)));

Datei anzeigen

@ -26,11 +26,11 @@ public class EntitySkeleton extends EntityMonster {
return "mob.skeletonhurt"; return "mob.skeletonhurt";
} }
public boolean a(DamageSource damagesource, int i) { public boolean damageEntity(DamageSource damagesource, int i) {
return super.damageEntity(damagesource, i); return super.damageEntity(damagesource, i);
} }
public void a(DamageSource damagesource) { public void die(DamageSource damagesource) {
super.die(damagesource); super.die(damagesource);
if (damagesource.e() instanceof EntityArrow && damagesource.a() instanceof EntityHuman) { if (damagesource.e() instanceof EntityArrow && damagesource.a() instanceof EntityHuman) {
EntityHuman entityhuman = (EntityHuman) damagesource.a(); EntityHuman entityhuman = (EntityHuman) damagesource.a();

Datei anzeigen

@ -7,7 +7,6 @@ import java.util.logging.Logger;
// CraftBukkit start // CraftBukkit start
import org.bukkit.ChatColor; import org.bukkit.ChatColor;
import org.bukkit.craftbukkit.ChunkCompressionThread; import org.bukkit.craftbukkit.ChunkCompressionThread;
import org.bukkit.craftbukkit.command.ColouredConsoleSender;
import org.bukkit.Location; import org.bukkit.Location;
import org.bukkit.command.CommandException; import org.bukkit.command.CommandException;
import org.bukkit.craftbukkit.block.CraftBlock; import org.bukkit.craftbukkit.block.CraftBlock;
@ -1052,7 +1051,7 @@ public class NetServerHandler extends NetHandler implements ICommandListener {
public void a(Packet0KeepAlive packet0keepalive) { public void a(Packet0KeepAlive packet0keepalive) {
if (packet0keepalive.a == this.i) { if (packet0keepalive.a == this.i) {
int i = (int) (System.nanoTime() / 1000000L - this.x); int i = (int) (System.nanoTime() / 1000000L - this.j);
this.player.i = (this.player.i * 3 + i) / 4; this.player.i = (this.player.i * 3 + i) / 4;
} }