Fix comparison between incompatible types, fixes #83

This commit is contained in:
Brady
2018-08-23 19:27:18 -05:00
parent 42b7597cd6
commit 18a9206058

View File

@@ -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);
}
}