fix for UnsupportedOperationException when an Entity in the End uses a portal