From 18a9206058e11ff46234227f66e66bdf91e952c2 Mon Sep 17 00:00:00 2001 From: Brady Date: Thu, 23 Aug 2018 19:27:18 -0500 Subject: [PATCH] Fix comparison between incompatible types, fixes #83 --- .../java/baritone/behavior/impl/LocationTrackingBehavior.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/baritone/behavior/impl/LocationTrackingBehavior.java b/src/main/java/baritone/behavior/impl/LocationTrackingBehavior.java index 8498690e..a6128ce9 100644 --- a/src/main/java/baritone/behavior/impl/LocationTrackingBehavior.java +++ b/src/main/java/baritone/behavior/impl/LocationTrackingBehavior.java @@ -41,7 +41,7 @@ public final class LocationTrackingBehavior extends Behavior { @Override public void onBlockInteract(BlockInteractEvent event) { - if (event.getType() == BlockInteractEvent.Type.USE && BlockStateInterface.get(event.getPos()) instanceof BlockBed) { + if (event.getType() == BlockInteractEvent.Type.USE && BlockStateInterface.getBlock(event.getPos()) instanceof BlockBed) { createWaypointAtPlayer("bed", Waypoint.Tag.BED); } }