make FeatureSaplingBlock extend SaplingBlock

This commit is contained in:
CoolMineman 2021-05-07 19:38:36 -05:00
parent 9e3c7fc0be
commit 406e3648cb
No known key found for this signature in database
GPG key ID: AD76E368E7380CE5
3 changed files with 12 additions and 10 deletions

View file

@ -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);