End gateway should check if entity can use portal

This commit is contained in:
William Blake Galbreath
2020-03-21 18:33:15 -05:00
parent 4d3eb6de60
commit e6d08599f2

View File

@@ -0,0 +1,24 @@
From 9d728df7b761c8ee11d3c8421a484ae0e817d142 Mon Sep 17 00:00:00 2001
From: William Blake Galbreath <Blake.Galbreath@GMail.com>
Date: Sat, 21 Mar 2020 18:33:05 -0500
Subject: [PATCH] End gateway should check if entity can use portal
---
src/main/java/net/minecraft/server/TileEntityEndGateway.java | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/main/java/net/minecraft/server/TileEntityEndGateway.java b/src/main/java/net/minecraft/server/TileEntityEndGateway.java
index c71f76004e..d73045f703 100644
--- a/src/main/java/net/minecraft/server/TileEntityEndGateway.java
+++ b/src/main/java/net/minecraft/server/TileEntityEndGateway.java
@@ -118,6 +118,7 @@ public class TileEntityEndGateway extends TileEntityEnderPortal implements ITick
public void a(Entity entity) {
if (this.world instanceof WorldServer && !this.f()) {
+ if (!entity.canPortal()) return; // Purpur
this.c = 100;
if (this.exitPortal == null && this.world.worldProvider instanceof WorldProviderTheEnd) {
this.a((WorldServer) this.world);
--
2.24.0