From f7d14f184d386cb5b0dd604dd1fdcd683fe9e065 Mon Sep 17 00:00:00 2001 From: Jacob Martin Date: Mon, 12 Jun 2017 12:41:18 -0500 Subject: Fix detection of missing or invalid tile entities for End portals and gateways --- nms-patches/WorldServer.patch | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nms-patches/WorldServer.patch b/nms-patches/WorldServer.patch index d5b3a137..844080d5 100644 --- a/nms-patches/WorldServer.patch +++ b/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); + } -- cgit v1.2.3