mirror of
https://github.com/GTNewHorizons/EnderIO.git
synced 2026-10-25 20:22:23 +00:00
Fix for getTravelItemTravelSource (#96)
This bug does not currently have any gameplay effect, because the return value of this method is not used to determine teleport range. But we should fix it anyway.
This commit is contained in:
1 parent
09661218a3
commit
628af062ba
1 file changed
+2
-2
@@ -554,8 +554,8 @@ public class TravelController {
|
||||
return null;
|
||||
}
|
||||
ItemStack equipped = ep.getCurrentEquippedItem();
|
||||
if (equipped.getItem() instanceof ItemTravelStaff) {
|
||||
if (((ItemTravelStaff) equipped.getItem()).isActive(ep, equipped)) {
|
||||
if (equipped.getItem() instanceof ItemTeleportStaff) {
|
||||
if (((ItemTeleportStaff) equipped.getItem()).isActive(ep, equipped)) {
|
||||
return TravelSource.TELEPORT_STAFF;
|
||||
}
|
||||
} else if (equipped.getItem() instanceof IItemOfTravel) {
|
||||
|
||||
Reference in new issue
Block a user