Fix end portals in custom ends

This commit is contained in:
md_5 2020-07-05 10:32:31 +10:00
parent e58a088765
commit 567e245fff
No known key found for this signature in database
GPG Key ID: E8E901AC7C617C11

View File

@ -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);