Fixed color providers (#201)
This commit is contained in:
parent
542dff12f5
commit
f5ceb6201a
3 changed files with 11 additions and 26 deletions
|
@ -28,7 +28,9 @@ public class TenaneaFlowersBlock extends BaseVineBlock implements IColorProvider
|
|||
@Override
|
||||
public BlockColor getProvider() {
|
||||
return (state, world, pos, tintIndex) -> {
|
||||
if (pos == null) pos = BlockPos.ZERO;
|
||||
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