Files
Purpur/patches/server/0063-End-gateway-should-check-if-entity-can-use-portal.patch
William Blake Galbreath 7503e60580 Tuinity! \o/
2020-07-01 19:31:44 -05:00

25 lines
1.1 KiB
Diff

From 0f2c06bbaafea85a003d29915ddbaaa041ab1e87 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 ce239d2b2..d00ca8a53 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.getDimensionKey() == World.THE_END) {
this.a((WorldServer) this.world);
--
2.26.2