Use BlockState for player inventory getBlock

This commit is contained in:
Jesse Boyd
2018-08-13 03:31:26 +10:00
parent 6f04022738
commit 7fb3899bb7
5 changed files with 5 additions and 6 deletions

View File

@ -60,7 +60,7 @@ public class DefaultBlockParser extends InputParser<BlockStateHolder> {
super(worldEdit);
}
private static BaseBlock getBlockInHand(Actor actor, HandSide handSide) throws InputParseException {
private static BlockState getBlockInHand(Actor actor, HandSide handSide) throws InputParseException {
if (actor instanceof Player) {
try {
return ((Player) actor).getBlockInHand(handSide);