Files
Purpur/patches/server/0100-End-gateway-should-check-if-entity-can-use-portal.patch
William Blake Galbreath ed7b2022b7 Bringing back Tuinity! \o/
2020-06-20 20:40:30 -05:00

25 lines
1.1 KiB
Diff

From 9f22c699aeb8bb9426f86c11f9b5d5b9d2db6de3 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 87aef515c..55294b5df 100644
--- a/src/main/java/net/minecraft/server/TileEntityEndGateway.java
+++ b/src/main/java/net/minecraft/server/TileEntityEndGateway.java
@@ -122,6 +122,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.26.2