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

SPIGOT-2365: Missed hanging diff

Dieser Commit ist enthalten in:
md_5 2016-06-09 20:42:49 +10:00
Ursprung b2f31b74d0
Commit 5a55e13868

Datei anzeigen

@ -12,7 +12,7 @@
public abstract class EntityHanging extends Entity { public abstract class EntityHanging extends Entity {
private static final Predicate<Entity> c = new Predicate() { private static final Predicate<Entity> c = new Predicate() {
@@ -41,39 +46,48 @@ @@ -41,43 +46,52 @@
this.updateBoundingBox(); this.updateBoundingBox();
} }
@ -35,8 +35,8 @@
+ double d1 = (double) blockPosition.getY() + 0.5D; + double d1 = (double) blockPosition.getY() + 0.5D;
+ double d2 = (double) blockPosition.getZ() + 0.5D; + double d2 = (double) blockPosition.getZ() + 0.5D;
+ double d3 = 0.46875D; + double d3 = 0.46875D;
+ double d4 = width; + double d4 = a(width);
+ double d5 = height; + double d5 = a(height);
+ +
+ d0 -= (double) direction.getAdjacentX() * 0.46875D; + d0 -= (double) direction.getAdjacentX() * 0.46875D;
+ d2 -= (double) direction.getAdjacentZ() * 0.46875D; + d2 -= (double) direction.getAdjacentZ() * 0.46875D;
@ -92,6 +92,11 @@
} }
} }
- private double a(int i) {
+ private static double a(int i) { // CraftBukkit - static
return i % 32 == 0 ? 0.5D : 0.0D;
}
@@ -88,6 +102,24 @@ @@ -88,6 +102,24 @@
if (this.d++ == 100 && !this.world.isClientSide) { if (this.d++ == 100 && !this.world.isClientSide) {
this.d = 0; this.d = 0;