SPIGOT-6347: Nether Portals Default to Nether, even in Nether

By: md_5 <git@md-5.net>
This commit is contained in:
CraftBukkit/Spigot 2021-02-13 10:31:49 +11:00
parent 849c37e463
commit 98e0c5c715

View file

@ -500,8 +500,12 @@
}
protected boolean q(Entity entity) {
@@ -1649,11 +1953,17 @@
ResourceKey<World> resourcekey = this.world.getDimensionKey() == World.THE_NETHER ? World.OVERWORLD : World.THE_NETHER;
@@ -1646,14 +1950,20 @@
if (this.inPortal) {
MinecraftServer minecraftserver = worldserver.getMinecraftServer();
- ResourceKey<World> resourcekey = this.world.getDimensionKey() == World.THE_NETHER ? World.OVERWORLD : World.THE_NETHER;
+ ResourceKey<World> resourcekey = this.world.getTypeKey() == DimensionManager.THE_NETHER ? World.OVERWORLD : World.THE_NETHER; // CraftBukkit
WorldServer worldserver1 = minecraftserver.getWorldServer(resourcekey);
- if (worldserver1 != null && minecraftserver.getAllowNether() && !this.isPassenger() && this.portalTicks++ >= i) {