Files
Purpur/patches/server/0099-End-gateway-should-check-if-entity-can-use-portal.patch

25 lines
1.1 KiB
Diff

From 880fd629acbb50e1198acaf479127bfebe3817d6 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