aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/io/github/moulberry/notenoughupdates/BetterPortals.java
diff options
context:
space:
mode:
authorBuildTools <james.jenour@protonmail.com>2020-12-31 01:26:26 +0800
committerBuildTools <james.jenour@protonmail.com>2020-12-31 01:26:26 +0800
commit9ae63509ab33c4d3f0ee19bc618ef4e4c654ef46 (patch)
treeb5d9120c9211ec989c05f0fb7d02d6497e49f8d0 /src/main/java/io/github/moulberry/notenoughupdates/BetterPortals.java
parent38bfc81ad013925463cd382bf99807d15b4fc53e (diff)
downloadnotenoughupdates-9ae63509ab33c4d3f0ee19bc618ef4e4c654ef46.tar.gz
notenoughupdates-9ae63509ab33c4d3f0ee19bc618ef4e4c654ef46.tar.bz2
notenoughupdates-9ae63509ab33c4d3f0ee19bc618ef4e4c654ef46.zip
1.8-PRE1
Diffstat (limited to 'src/main/java/io/github/moulberry/notenoughupdates/BetterPortals.java')
-rw-r--r--src/main/java/io/github/moulberry/notenoughupdates/BetterPortals.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/main/java/io/github/moulberry/notenoughupdates/BetterPortals.java b/src/main/java/io/github/moulberry/notenoughupdates/BetterPortals.java
index 8c512164..03003d4b 100644
--- a/src/main/java/io/github/moulberry/notenoughupdates/BetterPortals.java
+++ b/src/main/java/io/github/moulberry/notenoughupdates/BetterPortals.java
@@ -151,6 +151,9 @@ public class BetterPortals extends Gui {
@SubscribeEvent
public void tick(TickEvent.ClientTickEvent event) {
+ if(event.phase != TickEvent.Phase.END) {
+ return;
+ }
if(Minecraft.getMinecraft().theWorld != null) {
List<Vector3f> travelToPositions = new ArrayList<>();
for(Entity entity : Minecraft.getMinecraft().theWorld.loadedEntityList) {