From 6affe756743c73bfbc24c6d5b7fafdd6dfc14241 Mon Sep 17 00:00:00 2001 From: Pascal Date: Wed, 31 Jan 2024 07:53:01 +0100 Subject: [PATCH] fix protection mode of travel anchor (#149) --- .../java/crazypants/enderio/teleport/TravelController.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/crazypants/enderio/teleport/TravelController.java b/src/main/java/crazypants/enderio/teleport/TravelController.java index e90b718e..866e1449 100644 --- a/src/main/java/crazypants/enderio/teleport/TravelController.java +++ b/src/main/java/crazypants/enderio/teleport/TravelController.java @@ -152,7 +152,7 @@ public class TravelController { TileEntity maybeAnchor = target.getTileEntity(toTp.worldObj); if (!(maybeAnchor instanceof ITravelAccessable)) return "not anchor"; ITravelAccessable anchor = (ITravelAccessable) maybeAnchor; - if (!anchor.canBlockBeAccessed(toTp) && isValidTarget(toTp, target, TravelSource.BLOCK)) { + if (!isValidTarget(toTp, target, TravelSource.BLOCK)) { return "not valid target"; } return null; @@ -685,7 +685,7 @@ public class TravelController { * Baubles return value is unique/hacky, if <-1 return, then do the following to calculate the baubles slot: * "Math.abs(returnval)-2"
* Example: -3 return is Bauble slot 1, -2 return is Bauble slot 0 - * + * * @return -1 if no travel item found. 0 or more if item found in inventory. -2 or less if item found in Baubles. */ public int findTravelItemSlotInInventoryOrBaubles(EntityPlayer ep) {