mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-26 10:11:32 +01:00
SPIGOT-5062: end_portal on an non-default end world crashes the server
By: md_5 <git@md-5.net>
This commit is contained in:
parent
8023c6f3e5
commit
f340eae223
@ -342,7 +342,8 @@
|
|||||||
+ // this.worldChangeInvuln = true; // CraftBukkit - Moved down and into PlayerList#changeDimension
|
+ // this.worldChangeInvuln = true; // CraftBukkit - Moved down and into PlayerList#changeDimension
|
||||||
DimensionManager dimensionmanager1 = this.dimension;
|
DimensionManager dimensionmanager1 = this.dimension;
|
||||||
|
|
||||||
if (dimensionmanager1 == DimensionManager.THE_END && dimensionmanager == DimensionManager.OVERWORLD) {
|
- if (dimensionmanager1 == DimensionManager.THE_END && dimensionmanager == DimensionManager.OVERWORLD) {
|
||||||
|
+ if (dimensionmanager1.getType() == DimensionManager.THE_END && dimensionmanager.getType() == DimensionManager.OVERWORLD) { // CraftBukkit - getType()
|
||||||
+ 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…
Reference in New Issue
Block a user