Mirror von
https://github.com/PaperMC/Paper.git
synchronisiert 2024-12-18 04:20:08 +01:00
SPIGOT-2504: Save structure info for secondary worlds
Dieser Commit ist enthalten in:
Ursprung
2239ff0f97
Commit
a327d9f1da
@ -513,21 +513,7 @@
|
|||||||
this.worldData.a(this.getWorldBorder().getSize());
|
this.worldData.a(this.getWorldBorder().getSize());
|
||||||
this.worldData.d(this.getWorldBorder().getCenterX());
|
this.worldData.d(this.getWorldBorder().getCenterX());
|
||||||
this.worldData.c(this.getWorldBorder().getCenterZ());
|
this.worldData.c(this.getWorldBorder().getCenterZ());
|
||||||
@@ -809,8 +1047,12 @@
|
@@ -834,7 +1072,7 @@
|
||||||
this.worldData.k(this.getWorldBorder().getWarningTime());
|
|
||||||
this.worldData.b(this.getWorldBorder().j());
|
|
||||||
this.worldData.e(this.getWorldBorder().i());
|
|
||||||
+ // CraftBukkit start - save worldMaps once, rather than once per shared world
|
|
||||||
+ if (!(this instanceof SecondaryWorldServer)) {
|
|
||||||
+ this.worldMaps.a();
|
|
||||||
+ }
|
|
||||||
this.dataManager.saveWorldData(this.worldData, this.server.getPlayerList().t());
|
|
||||||
- this.worldMaps.a();
|
|
||||||
+ // CraftBukkit end
|
|
||||||
}
|
|
||||||
|
|
||||||
public boolean addEntity(Entity entity) {
|
|
||||||
@@ -834,7 +1076,7 @@
|
|
||||||
|
|
||||||
private boolean i(Entity entity) {
|
private boolean i(Entity entity) {
|
||||||
if (entity.dead) {
|
if (entity.dead) {
|
||||||
@ -536,7 +522,7 @@
|
|||||||
return false;
|
return false;
|
||||||
} else {
|
} else {
|
||||||
UUID uuid = entity.getUniqueID();
|
UUID uuid = entity.getUniqueID();
|
||||||
@@ -846,7 +1088,7 @@
|
@@ -846,7 +1084,7 @@
|
||||||
this.f.remove(entity1);
|
this.f.remove(entity1);
|
||||||
} else {
|
} else {
|
||||||
if (!(entity instanceof EntityHuman)) {
|
if (!(entity instanceof EntityHuman)) {
|
||||||
@ -545,7 +531,7 @@
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -899,8 +1141,16 @@
|
@@ -899,8 +1137,16 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
public boolean strikeLightning(Entity entity) {
|
public boolean strikeLightning(Entity entity) {
|
||||||
@ -563,7 +549,7 @@
|
|||||||
return true;
|
return true;
|
||||||
} else {
|
} else {
|
||||||
return false;
|
return false;
|
||||||
@@ -916,10 +1166,20 @@
|
@@ -916,10 +1162,20 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
public Explosion createExplosion(@Nullable Entity entity, double d0, double d1, double d2, float f, boolean flag, boolean flag1) {
|
public Explosion createExplosion(@Nullable Entity entity, double d0, double d1, double d2, float f, boolean flag, boolean flag1) {
|
||||||
@ -584,7 +570,7 @@
|
|||||||
if (!flag1) {
|
if (!flag1) {
|
||||||
explosion.clearBlocks();
|
explosion.clearBlocks();
|
||||||
}
|
}
|
||||||
@@ -965,7 +1225,8 @@
|
@@ -965,7 +1221,8 @@
|
||||||
BlockActionData blockactiondata = (BlockActionData) iterator.next();
|
BlockActionData blockactiondata = (BlockActionData) iterator.next();
|
||||||
|
|
||||||
if (this.a(blockactiondata)) {
|
if (this.a(blockactiondata)) {
|
||||||
@ -594,7 +580,7 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -988,6 +1249,7 @@
|
@@ -988,6 +1245,7 @@
|
||||||
boolean flag = this.W();
|
boolean flag = this.W();
|
||||||
|
|
||||||
super.t();
|
super.t();
|
||||||
@ -602,7 +588,7 @@
|
|||||||
if (this.n != this.o) {
|
if (this.n != this.o) {
|
||||||
this.server.getPlayerList().a((Packet) (new PacketPlayOutGameStateChange(7, this.o)), this.worldProvider.getDimensionManager().getDimensionID());
|
this.server.getPlayerList().a((Packet) (new PacketPlayOutGameStateChange(7, this.o)), this.worldProvider.getDimensionManager().getDimensionID());
|
||||||
}
|
}
|
||||||
@@ -1006,6 +1268,21 @@
|
@@ -1006,6 +1264,21 @@
|
||||||
this.server.getPlayerList().sendAll(new PacketPlayOutGameStateChange(7, this.o));
|
this.server.getPlayerList().sendAll(new PacketPlayOutGameStateChange(7, this.o));
|
||||||
this.server.getPlayerList().sendAll(new PacketPlayOutGameStateChange(8, this.q));
|
this.server.getPlayerList().sendAll(new PacketPlayOutGameStateChange(8, this.q));
|
||||||
}
|
}
|
||||||
@ -624,7 +610,7 @@
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1035,10 +1312,20 @@
|
@@ -1035,10 +1308,20 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
public void a(EnumParticle enumparticle, boolean flag, double d0, double d1, double d2, int i, double d3, double d4, double d5, double d6, int... aint) {
|
public void a(EnumParticle enumparticle, boolean flag, double d0, double d1, double d2, int i, double d3, double d4, double d5, double d6, int... aint) {
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren