13
0
geforkt von Mirrors/Paper

SPIGOT-6011: End Gateways do not work on Non-Main End Worlds

By: md_5 <git@md-5.net>
Dieser Commit ist enthalten in:
CraftBukkit/Spigot 2020-07-22 18:48:16 +10:00
Ursprung bf2f8ae9a7
Commit 2b52833726

Datei anzeigen

@ -13,6 +13,15 @@
public class TileEntityEndGateway extends TileEntityEnderPortal implements ITickable { public class TileEntityEndGateway extends TileEntityEnderPortal implements ITickable {
@@ -113,7 +119,7 @@
public void a(Entity entity) {
if (this.world instanceof WorldServer && !this.f()) {
this.c = 100;
- if (this.exitPortal == null && this.world.getDimensionKey() == World.THE_END) {
+ if (this.exitPortal == null && this.world.getTypeKey() == DimensionManager.THE_END) { // CraftBukkit - work in alternate worlds
this.a((WorldServer) this.world);
}
@@ -138,6 +144,26 @@ @@ -138,6 +144,26 @@
entity1 = entity.getRootVehicle(); entity1 = entity.getRootVehicle();
} }