geforkt von Mirrors/Paper
SPIGOT-6236: Vehicle passenger portal cooldown does not change
By: md_5 <git@md-5.net>
Dieser Commit ist enthalten in:
Ursprung
d7c19c9eb7
Commit
889488ff73
@ -301,7 +301,15 @@
|
|||||||
gameprofilerfiller.exit();
|
gameprofilerfiller.exit();
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -619,6 +732,7 @@
|
@@ -563,6 +676,7 @@
|
||||||
|
});
|
||||||
|
gameprofilerfiller.c("tickPassenger");
|
||||||
|
entity1.passengerTick();
|
||||||
|
+ entity1.postTick(); // CraftBukkit
|
||||||
|
gameprofilerfiller.exit();
|
||||||
|
}
|
||||||
|
|
||||||
|
@@ -619,6 +733,7 @@
|
||||||
ChunkProviderServer chunkproviderserver = this.getChunkProvider();
|
ChunkProviderServer chunkproviderserver = this.getChunkProvider();
|
||||||
|
|
||||||
if (!flag1) {
|
if (!flag1) {
|
||||||
@ -309,7 +317,7 @@
|
|||||||
if (iprogressupdate != null) {
|
if (iprogressupdate != null) {
|
||||||
iprogressupdate.a(new ChatMessage("menu.savingLevel"));
|
iprogressupdate.a(new ChatMessage("menu.savingLevel"));
|
||||||
}
|
}
|
||||||
@@ -630,11 +744,19 @@
|
@@ -630,11 +745,19 @@
|
||||||
|
|
||||||
chunkproviderserver.save(flag);
|
chunkproviderserver.save(flag);
|
||||||
}
|
}
|
||||||
@ -330,7 +338,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
this.getChunkProvider().getWorldPersistentData().a();
|
this.getChunkProvider().getWorldPersistentData().a();
|
||||||
@@ -695,11 +817,24 @@
|
@@ -695,11 +818,24 @@
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean addEntity(Entity entity) {
|
public boolean addEntity(Entity entity) {
|
||||||
@ -357,7 +365,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
public void addEntityTeleport(Entity entity) {
|
public void addEntityTeleport(Entity entity) {
|
||||||
@@ -749,13 +884,18 @@
|
@@ -749,13 +885,18 @@
|
||||||
this.registerEntity(entityplayer);
|
this.registerEntity(entityplayer);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -378,7 +386,7 @@
|
|||||||
IChunkAccess ichunkaccess = this.getChunkAt(MathHelper.floor(entity.locX() / 16.0D), MathHelper.floor(entity.locZ() / 16.0D), ChunkStatus.FULL, entity.attachedToPlayer);
|
IChunkAccess ichunkaccess = this.getChunkAt(MathHelper.floor(entity.locX() / 16.0D), MathHelper.floor(entity.locZ() / 16.0D), ChunkStatus.FULL, entity.attachedToPlayer);
|
||||||
|
|
||||||
if (!(ichunkaccess instanceof Chunk)) {
|
if (!(ichunkaccess instanceof Chunk)) {
|
||||||
@@ -784,7 +924,7 @@
|
@@ -784,7 +925,7 @@
|
||||||
if (entity1 == null) {
|
if (entity1 == null) {
|
||||||
return false;
|
return false;
|
||||||
} else {
|
} else {
|
||||||
@ -387,7 +395,7 @@
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -813,11 +953,16 @@
|
@@ -813,11 +954,16 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
public boolean addAllEntitiesSafely(Entity entity) {
|
public boolean addAllEntitiesSafely(Entity entity) {
|
||||||
@ -406,7 +414,7 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -867,10 +1012,17 @@
|
@@ -867,10 +1013,17 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
this.getScoreboard().a(entity);
|
this.getScoreboard().a(entity);
|
||||||
@ -424,7 +432,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
private void registerEntity(Entity entity) {
|
private void registerEntity(Entity entity) {
|
||||||
@@ -891,9 +1043,16 @@
|
@@ -891,9 +1044,16 @@
|
||||||
|
|
||||||
this.entitiesByUUID.put(entity.getUniqueID(), entity);
|
this.entitiesByUUID.put(entity.getUniqueID(), entity);
|
||||||
this.getChunkProvider().addEntity(entity);
|
this.getChunkProvider().addEntity(entity);
|
||||||
@ -441,7 +449,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
@@ -923,10 +1082,33 @@
|
@@ -923,10 +1083,33 @@
|
||||||
this.everyoneSleeping();
|
this.everyoneSleeping();
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -475,7 +483,7 @@
|
|||||||
while (iterator.hasNext()) {
|
while (iterator.hasNext()) {
|
||||||
EntityPlayer entityplayer = (EntityPlayer) iterator.next();
|
EntityPlayer entityplayer = (EntityPlayer) iterator.next();
|
||||||
|
|
||||||
@@ -935,6 +1117,12 @@
|
@@ -935,6 +1118,12 @@
|
||||||
double d1 = (double) blockposition.getY() - entityplayer.locY();
|
double d1 = (double) blockposition.getY() - entityplayer.locY();
|
||||||
double d2 = (double) blockposition.getZ() - entityplayer.locZ();
|
double d2 = (double) blockposition.getZ() - entityplayer.locZ();
|
||||||
|
|
||||||
@ -488,7 +496,7 @@
|
|||||||
if (d0 * d0 + d1 * d1 + d2 * d2 < 1024.0D) {
|
if (d0 * d0 + d1 * d1 + d2 * d2 < 1024.0D) {
|
||||||
entityplayer.playerConnection.sendPacket(new PacketPlayOutBlockBreakAnimation(i, blockposition, j));
|
entityplayer.playerConnection.sendPacket(new PacketPlayOutBlockBreakAnimation(i, blockposition, j));
|
||||||
}
|
}
|
||||||
@@ -995,10 +1183,20 @@
|
@@ -995,10 +1184,20 @@
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public Explosion createExplosion(@Nullable Entity entity, @Nullable DamageSource damagesource, @Nullable ExplosionDamageCalculator explosiondamagecalculator, double d0, double d1, double d2, float f, boolean flag, Explosion.Effect explosion_effect) {
|
public Explosion createExplosion(@Nullable Entity entity, @Nullable DamageSource damagesource, @Nullable ExplosionDamageCalculator explosiondamagecalculator, double d0, double d1, double d2, float f, boolean flag, Explosion.Effect explosion_effect) {
|
||||||
@ -509,7 +517,7 @@
|
|||||||
if (explosion_effect == Explosion.Effect.NONE) {
|
if (explosion_effect == Explosion.Effect.NONE) {
|
||||||
explosion.clearBlocks();
|
explosion.clearBlocks();
|
||||||
}
|
}
|
||||||
@@ -1063,13 +1261,20 @@
|
@@ -1063,13 +1262,20 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
public <T extends ParticleParam> int a(T t0, double d0, double d1, double d2, int i, double d3, double d4, double d5, double d6) {
|
public <T extends ParticleParam> int a(T t0, double d0, double d1, double d2, int i, double d3, double d4, double d5, double d6) {
|
||||||
@ -532,7 +540,7 @@
|
|||||||
++j;
|
++j;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -1111,7 +1316,7 @@
|
@@ -1111,7 +1317,7 @@
|
||||||
|
|
||||||
@Nullable
|
@Nullable
|
||||||
public BlockPosition a(StructureGenerator<?> structuregenerator, BlockPosition blockposition, int i, boolean flag) {
|
public BlockPosition a(StructureGenerator<?> structuregenerator, BlockPosition blockposition, int i, boolean flag) {
|
||||||
@ -541,7 +549,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Nullable
|
@Nullable
|
||||||
@@ -1149,7 +1354,13 @@
|
@@ -1149,7 +1355,13 @@
|
||||||
@Override
|
@Override
|
||||||
public WorldMap a(String s) {
|
public WorldMap a(String s) {
|
||||||
return (WorldMap) this.getMinecraftServer().E().getWorldPersistentData().b(() -> {
|
return (WorldMap) this.getMinecraftServer().E().getWorldPersistentData().b(() -> {
|
||||||
@ -556,7 +564,7 @@
|
|||||||
}, s);
|
}, s);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1460,6 +1671,11 @@
|
@@ -1460,6 +1672,11 @@
|
||||||
@Override
|
@Override
|
||||||
public void update(BlockPosition blockposition, Block block) {
|
public void update(BlockPosition blockposition, Block block) {
|
||||||
if (!this.isDebugWorld()) {
|
if (!this.isDebugWorld()) {
|
||||||
@ -568,7 +576,7 @@
|
|||||||
this.applyPhysics(blockposition, block);
|
this.applyPhysics(blockposition, block);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1474,12 +1690,12 @@
|
@@ -1474,12 +1691,12 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
public boolean isFlatWorld() {
|
public boolean isFlatWorld() {
|
||||||
@ -583,7 +591,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Nullable
|
@Nullable
|
||||||
@@ -1499,9 +1715,9 @@
|
@@ -1499,9 +1716,9 @@
|
||||||
|
|
||||||
@VisibleForTesting
|
@VisibleForTesting
|
||||||
public String F() {
|
public String F() {
|
||||||
@ -595,7 +603,7 @@
|
|||||||
return IRegistry.BLOCK_ENTITY_TYPE.getKey(tileentity.getTileType());
|
return IRegistry.BLOCK_ENTITY_TYPE.getKey(tileentity.getTileType());
|
||||||
}), this.getBlockTickList().a(), this.getFluidTickList().a(), this.P());
|
}), this.getBlockTickList().a(), this.getFluidTickList().a(), this.P());
|
||||||
}
|
}
|
||||||
@@ -1509,7 +1725,7 @@
|
@@ -1509,7 +1726,7 @@
|
||||||
private static <T> String a(Collection<T> collection, Function<T, MinecraftKey> function) {
|
private static <T> String a(Collection<T> collection, Function<T, MinecraftKey> function) {
|
||||||
try {
|
try {
|
||||||
Object2IntOpenHashMap<MinecraftKey> object2intopenhashmap = new Object2IntOpenHashMap();
|
Object2IntOpenHashMap<MinecraftKey> object2intopenhashmap = new Object2IntOpenHashMap();
|
||||||
@ -604,7 +612,7 @@
|
|||||||
|
|
||||||
while (iterator.hasNext()) {
|
while (iterator.hasNext()) {
|
||||||
T t0 = iterator.next();
|
T t0 = iterator.next();
|
||||||
@@ -1518,7 +1734,8 @@
|
@@ -1518,7 +1735,8 @@
|
||||||
object2intopenhashmap.addTo(minecraftkey, 1);
|
object2intopenhashmap.addTo(minecraftkey, 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -614,7 +622,7 @@
|
|||||||
return it_unimi_dsi_fastutil_objects_object2intmap_entry.getKey() + ":" + it_unimi_dsi_fastutil_objects_object2intmap_entry.getIntValue();
|
return it_unimi_dsi_fastutil_objects_object2intmap_entry.getKey() + ":" + it_unimi_dsi_fastutil_objects_object2intmap_entry.getIntValue();
|
||||||
}).collect(Collectors.joining(","));
|
}).collect(Collectors.joining(","));
|
||||||
} catch (Exception exception) {
|
} catch (Exception exception) {
|
||||||
@@ -1527,16 +1744,32 @@
|
@@ -1527,16 +1745,32 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
public static void a(WorldServer worldserver) {
|
public static void a(WorldServer worldserver) {
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren