From 3770ac47cfe6052bcbcab3ab1257754226f90ce9 Mon Sep 17 00:00:00 2001 From: CraftBukkit/Spigot Date: Mon, 12 Jun 2017 12:41:18 -0500 Subject: [PATCH] Fix detection of missing or invalid tile entities for End portals and gateways By: Jacob Martin --- paper-server/nms-patches/WorldServer.patch | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/paper-server/nms-patches/WorldServer.patch b/paper-server/nms-patches/WorldServer.patch index d5b3a137b7..844080d5db 100644 --- a/paper-server/nms-patches/WorldServer.patch +++ b/paper-server/nms-patches/WorldServer.patch @@ -160,7 +160,7 @@ + result = fixTileEntity(pos, type, result); + } + } else if (type == Blocks.END_PORTAL) { -+ if (!(result instanceof TileEntityEndGateway)) { ++ if (!(result instanceof TileEntityEnderPortal)) { + result = fixTileEntity(pos, type, result); + } + } else if (type == Blocks.SKULL) { @@ -187,7 +187,7 @@ + if (!(result instanceof TileEntityStructure)) { + result = fixTileEntity(pos, type, result); + } -+ } else if (type == Blocks.END_PORTAL) { ++ } else if (type == Blocks.END_GATEWAY) { + if (!(result instanceof TileEntityEndGateway)) { + result = fixTileEntity(pos, type, result); + }