make FeatureSaplingBlock extend SaplingBlock
This commit is contained in:
parent
9e3c7fc0be
commit
406e3648cb
3 changed files with 12 additions and 10 deletions
|
@ -27,6 +27,7 @@ public class TenaneaFlowersBlock extends VineBlock implements IColorProvider {
|
|||
@Override
|
||||
public BlockColor getProvider() {
|
||||
return (state, world, pos, tintIndex) -> {
|
||||
if (pos == null) pos = BlockPos.ZERO;
|
||||
long i = (MHelper.getRandom(pos.getX(), pos.getZ()) & 63) + pos.getY();
|
||||
double delta = i * 0.1;
|
||||
int index = MHelper.floor(delta);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue