mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-22 08:57:35 +01:00
SPIGOT-6011: End Gateways do not work on Non-Main End Worlds
This commit is contained in:
parent
d492e363b8
commit
7c03d257dd
@ -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();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user