mirror of
https://github.com/PurpurMC/Purpur.git
synced 2026-02-19 17:37:42 +01:00
End gateway should check if entity can use portal
This commit is contained in:
@@ -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
|
||||||
|
|
||||||
Reference in New Issue
Block a user