also don't construct an optional for slabs

This commit is contained in:
Leijurv 2022-07-14 21:38:38 -07:00
parent 8018dac396
commit 5b7bee977b
No known key found for this signature in database
GPG Key ID: 44A3EA646EADAC6A

View File

@ -384,7 +384,10 @@ public interface MovementHelper extends ActionCosts, Helper {
if (((BlockSlab) block).isDouble()) {
return TRUE;
}
return Optional.of(state.getValue(BlockSlab.HALF) != BlockSlab.EnumBlockHalf.BOTTOM);
if (state.getValue(BlockSlab.HALF) != BlockSlab.EnumBlockHalf.BOTTOM) {
return TRUE;
}
return FALSE;
}
return TRUE;
}