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

This commit is contained in:
md_5 2020-07-22 18:48:16 +10:00
parent d492e363b8
commit 7c03d257dd
No known key found for this signature in database
GPG Key ID: E8E901AC7C617C11

View File

@ -13,6 +13,15 @@
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 @@
entity1 = entity.getRootVehicle();
}