@@ -272,7 +272,7 @@
|
||||
int i = MathHelper.floor(entity.locX / 16.0D);
|
||||
int j = MathHelper.floor(entity.locZ / 16.0D);
|
||||
boolean flag = entity.attachedToPlayer;
|
||||
@@ -793,6 +977,35 @@
|
||||
@@ -793,6 +977,37 @@
|
||||
flag = true;
|
||||
}
|
||||
|
||||
@@ -296,6 +296,8 @@
|
||||
+ } else if (entity.getBukkitEntity() instanceof org.bukkit.entity.Projectile) {
|
||||
+ // Not all projectiles extend EntityProjectile, so check for Bukkit interface instead
|
||||
+ event = CraftEventFactory.callProjectileLaunchEvent(entity);
|
||||
+ } else if (entity.getBukkitEntity() instanceof org.bukkit.entity.Vehicle){
|
||||
+ event = CraftEventFactory.callVehicleCreateEvent(entity);
|
||||
+ }
|
||||
+
|
||||
+ if (event != null && (event.isCancelled() || entity.dead)) {
|
||||
@@ -308,7 +310,7 @@
|
||||
if (!flag && !this.isChunkLoaded(i, j, false)) {
|
||||
return false;
|
||||
} else {
|
||||
@@ -815,6 +1028,7 @@
|
||||
@@ -815,6 +1030,7 @@
|
||||
((IWorldAccess) this.u.get(i)).a(entity);
|
||||
}
|
||||
|
||||
@@ -316,7 +318,7 @@
|
||||
}
|
||||
|
||||
protected void c(Entity entity) {
|
||||
@@ -822,6 +1036,7 @@
|
||||
@@ -822,6 +1038,7 @@
|
||||
((IWorldAccess) this.u.get(i)).b(entity);
|
||||
}
|
||||
|
||||
@@ -324,7 +326,7 @@
|
||||
}
|
||||
|
||||
public void kill(Entity entity) {
|
||||
@@ -857,7 +1072,15 @@
|
||||
@@ -857,7 +1074,15 @@
|
||||
this.getChunkAt(i, j).b(entity);
|
||||
}
|
||||
|
||||
@@ -341,7 +343,7 @@
|
||||
this.c(entity);
|
||||
}
|
||||
|
||||
@@ -974,7 +1197,7 @@
|
||||
@@ -974,7 +1199,7 @@
|
||||
}
|
||||
|
||||
public boolean a(AxisAlignedBB axisalignedbb) {
|
||||
@@ -350,7 +352,7 @@
|
||||
}
|
||||
|
||||
public int a(float f) {
|
||||
@@ -1044,6 +1267,11 @@
|
||||
@@ -1044,6 +1269,11 @@
|
||||
|
||||
for (i = 0; i < this.j.size(); ++i) {
|
||||
entity = (Entity) this.j.get(i);
|
||||
@@ -362,7 +364,7 @@
|
||||
|
||||
try {
|
||||
++entity.ticksLived;
|
||||
@@ -1092,8 +1320,10 @@
|
||||
@@ -1092,8 +1322,10 @@
|
||||
CrashReportSystemDetails crashreportsystemdetails1;
|
||||
CrashReport crashreport1;
|
||||
|
||||
@@ -375,7 +377,7 @@
|
||||
Entity entity1 = entity.bB();
|
||||
|
||||
if (entity1 != null) {
|
||||
@@ -1126,7 +1356,7 @@
|
||||
@@ -1126,7 +1358,7 @@
|
||||
this.getChunkAt(j, l).b(entity);
|
||||
}
|
||||
|
||||
@@ -384,7 +386,7 @@
|
||||
this.c(entity);
|
||||
}
|
||||
|
||||
@@ -1135,6 +1365,13 @@
|
||||
@@ -1135,6 +1367,13 @@
|
||||
|
||||
this.methodProfiler.c("blockEntities");
|
||||
this.M = true;
|
||||
@@ -398,7 +400,7 @@
|
||||
Iterator iterator = this.tileEntityListTick.iterator();
|
||||
|
||||
while (iterator.hasNext()) {
|
||||
@@ -1145,7 +1382,7 @@
|
||||
@@ -1145,7 +1384,7 @@
|
||||
|
||||
if (this.isLoaded(blockposition) && this.N.a(blockposition)) {
|
||||
try {
|
||||
@@ -407,7 +409,7 @@
|
||||
((ITickable) tileentity).F_();
|
||||
this.methodProfiler.b();
|
||||
} catch (Throwable throwable2) {
|
||||
@@ -1167,11 +1404,13 @@
|
||||
@@ -1167,11 +1406,13 @@
|
||||
}
|
||||
|
||||
this.M = false;
|
||||
@@ -421,7 +423,7 @@
|
||||
|
||||
this.methodProfiler.c("pendingBlockEntities");
|
||||
if (!this.b.isEmpty()) {
|
||||
@@ -1179,9 +1418,11 @@
|
||||
@@ -1179,9 +1420,11 @@
|
||||
TileEntity tileentity1 = (TileEntity) this.b.get(i1);
|
||||
|
||||
if (!tileentity1.y()) {
|
||||
@@ -433,7 +435,7 @@
|
||||
|
||||
if (this.isLoaded(tileentity1.getPosition())) {
|
||||
Chunk chunk = this.getChunkAtWorldCoords(tileentity1.getPosition());
|
||||
@@ -1189,6 +1430,12 @@
|
||||
@@ -1189,6 +1432,12 @@
|
||||
|
||||
chunk.a(tileentity1.getPosition(), tileentity1);
|
||||
this.notify(tileentity1.getPosition(), iblockdata, iblockdata, 3);
|
||||
@@ -446,7 +448,7 @@
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1243,7 +1490,10 @@
|
||||
@@ -1243,7 +1492,10 @@
|
||||
int j = MathHelper.floor(entity.locZ);
|
||||
boolean flag1 = true;
|
||||
|
||||
@@ -458,7 +460,7 @@
|
||||
entity.M = entity.locX;
|
||||
entity.N = entity.locY;
|
||||
entity.O = entity.locZ;
|
||||
@@ -1547,11 +1797,18 @@
|
||||
@@ -1547,11 +1799,18 @@
|
||||
}
|
||||
}
|
||||
|
||||
@@ -477,7 +479,7 @@
|
||||
TileEntity tileentity = null;
|
||||
|
||||
if (this.M) {
|
||||
@@ -1586,6 +1843,14 @@
|
||||
@@ -1586,6 +1845,14 @@
|
||||
public void setTileEntity(BlockPosition blockposition, @Nullable TileEntity tileentity) {
|
||||
if (!this.E(blockposition)) {
|
||||
if (tileentity != null && !tileentity.y()) {
|
||||
@@ -492,7 +494,7 @@
|
||||
if (this.M) {
|
||||
tileentity.setPosition(blockposition);
|
||||
Iterator iterator = this.b.iterator();
|
||||
@@ -1745,6 +2010,14 @@
|
||||
@@ -1745,6 +2012,14 @@
|
||||
}
|
||||
|
||||
this.o = MathHelper.a(this.o, 0.0F, 1.0F);
|
||||
@@ -507,7 +509,7 @@
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1876,7 +2149,10 @@
|
||||
@@ -1876,7 +2151,10 @@
|
||||
}
|
||||
|
||||
public boolean c(EnumSkyBlock enumskyblock, BlockPosition blockposition) {
|
||||
@@ -519,7 +521,7 @@
|
||||
return false;
|
||||
} else {
|
||||
int i = 0;
|
||||
@@ -2043,7 +2319,7 @@
|
||||
@@ -2043,7 +2321,7 @@
|
||||
while (iterator.hasNext()) {
|
||||
Entity entity = (Entity) iterator.next();
|
||||
|
||||
@@ -528,7 +530,7 @@
|
||||
arraylist.add(entity);
|
||||
}
|
||||
}
|
||||
@@ -2058,7 +2334,7 @@
|
||||
@@ -2058,7 +2336,7 @@
|
||||
while (iterator.hasNext()) {
|
||||
Entity entity = (Entity) iterator.next();
|
||||
|
||||
@@ -537,7 +539,7 @@
|
||||
arraylist.add(entity);
|
||||
}
|
||||
}
|
||||
@@ -2107,7 +2383,7 @@
|
||||
@@ -2107,7 +2385,7 @@
|
||||
}
|
||||
}
|
||||
|
||||
@@ -546,7 +548,7 @@
|
||||
}
|
||||
|
||||
@Nullable
|
||||
@@ -2128,8 +2404,17 @@
|
||||
@@ -2128,8 +2406,17 @@
|
||||
|
||||
while (iterator.hasNext()) {
|
||||
Entity entity = (Entity) iterator.next();
|
||||
@@ -566,7 +568,7 @@
|
||||
++i;
|
||||
}
|
||||
}
|
||||
@@ -2138,12 +2423,18 @@
|
||||
@@ -2138,12 +2425,18 @@
|
||||
}
|
||||
|
||||
public void a(Collection<Entity> collection) {
|
||||
@@ -586,7 +588,7 @@
|
||||
this.b(entity);
|
||||
}
|
||||
|
||||
@@ -2157,7 +2448,13 @@
|
||||
@@ -2157,7 +2450,13 @@
|
||||
IBlockData iblockdata = this.getType(blockposition);
|
||||
AxisAlignedBB axisalignedbb = flag ? null : block.getBlockData().c(this, blockposition);
|
||||
|
||||
@@ -601,7 +603,7 @@
|
||||
}
|
||||
|
||||
public int K() {
|
||||
@@ -2267,6 +2564,11 @@
|
||||
@@ -2267,6 +2566,11 @@
|
||||
|
||||
for (int i = 0; i < this.players.size(); ++i) {
|
||||
EntityHuman entityhuman1 = (EntityHuman) this.players.get(i);
|
||||
@@ -613,7 +615,7 @@
|
||||
|
||||
if (predicate.apply(entityhuman1)) {
|
||||
double d5 = entityhuman1.d(d0, d1, d2);
|
||||
@@ -2435,6 +2737,16 @@
|
||||
@@ -2435,6 +2739,16 @@
|
||||
|
||||
public void everyoneSleeping() {}
|
||||
|
||||
@@ -630,7 +632,7 @@
|
||||
public float h(float f) {
|
||||
return (this.p + (this.q - this.p) * f) * this.j(f);
|
||||
}
|
||||
@@ -2652,7 +2964,7 @@
|
||||
@@ -2652,7 +2966,7 @@
|
||||
int l = j * 16 + 8 - blockposition.getZ();
|
||||
boolean flag = true;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user