mirror of
https://github.com/PaperMC/Paper.git
synced 2025-03-20 14:08:57 +01:00
Fix end portals in custom ends
This commit is contained in:
parent
e58a088765
commit
567e245fff
1 changed files with 1 additions and 1 deletions
|
@ -371,7 +371,7 @@
|
||||||
+ ResourceKey<DimensionManager> resourcekey = worldserver1.getTypeKey(); // CraftBukkit
|
+ ResourceKey<DimensionManager> resourcekey = worldserver1.getTypeKey(); // CraftBukkit
|
||||||
|
|
||||||
- if (resourcekey == World.THE_END && worldserver.getDimensionKey() == World.OVERWORLD) {
|
- if (resourcekey == World.THE_END && worldserver.getDimensionKey() == World.OVERWORLD) {
|
||||||
+ if (resourcekey == DimensionManager.THE_END && worldserver.getTypeKey() == DimensionManager.OVERWORLD) { // CraftBukkit
|
+ if (resourcekey == DimensionManager.THE_END && worldserver != null && worldserver.getTypeKey() == DimensionManager.OVERWORLD) { // CraftBukkit
|
||||||
+ this.worldChangeInvuln = true; // CraftBukkit - Moved down from above
|
+ this.worldChangeInvuln = true; // CraftBukkit - Moved down from above
|
||||||
this.decouple();
|
this.decouple();
|
||||||
this.getWorldServer().removePlayer(this);
|
this.getWorldServer().removePlayer(this);
|
||||||
|
|
Loading…
Add table
Reference in a new issue