Skip to content

Commit

Permalink
Fixed ambiguous method reference
Browse files Browse the repository at this point in the history
  • Loading branch information
me4502 committed Jan 16, 2021
1 parent e491389 commit 252e605
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
import com.sk89q.worldedit.extent.AbstractDelegateExtent;
import com.sk89q.worldedit.extent.Extent;
import com.sk89q.worldedit.math.BlockVector3;
import com.sk89q.worldedit.util.nbt.CompoundBinaryTag;
import com.sk89q.worldedit.world.World;
import com.sk89q.worldedit.world.block.BlockStateHolder;

Expand Down Expand Up @@ -95,7 +96,7 @@ public <B extends BlockStateHolder<B>> boolean setBlock(BlockVector3 location, B
} else {
// Can't be an inlined check due to inconsistent generic return type
if (stripNbt) {
return super.setBlock(location, block.toBaseBlock(null));
return super.setBlock(location, block.toBaseBlock((CompoundBinaryTag) null));
} else {
return super.setBlock(location, block);
}
Expand Down

0 comments on commit 252e605

Please sign in to comment.