diff --git a/nms-patches/EntityPlayer.patch b/nms-patches/EntityPlayer.patch index 823e78689f..aab5a8f134 100644 --- a/nms-patches/EntityPlayer.patch +++ b/nms-patches/EntityPlayer.patch @@ -342,7 +342,8 @@ + // this.worldChangeInvuln = true; // CraftBukkit - Moved down and into PlayerList#changeDimension 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.decouple(); this.getWorldServer().removePlayer(this);