mirror of
https://github.com/PurpurMC/Purpur.git
synced 2026-02-20 01:47:42 +01:00
25 lines
1.1 KiB
Diff
25 lines
1.1 KiB
Diff
From 2ed2dad2f015763bcf4bf54e56ebadece69521bb 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 aebb6b6b2..c6b26f665 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
|
|
|