Fix comparison between incompatible types, fixes #83
This commit is contained in:
parent
42b7597cd6
commit
18a9206058
@ -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);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user