Server crash hotfix
This commit is contained in:
parent
4e1e72348a
commit
7f2bad86ca
4 changed files with 47 additions and 66 deletions
|
@ -11,29 +11,22 @@ import ru.betterend.patterns.BlockPatterned;
|
|||
import ru.betterend.patterns.Patterns;
|
||||
|
||||
public class BlockBulbVineLanternColored extends BlockBulbVineLantern implements IColorProvider, BlockPatterned {
|
||||
private final BlockColorProvider blockProvider;
|
||||
private final ItemColorProvider itemProvider;
|
||||
|
||||
public BlockBulbVineLanternColored(FabricBlockSettings settings) {
|
||||
super(settings);
|
||||
|
||||
blockProvider = (state, world, pos, tintIndex) -> {
|
||||
return this.getDefaultMaterialColor().color;
|
||||
};
|
||||
|
||||
itemProvider = (stack, tintIndex) -> {
|
||||
return this.getDefaultMaterialColor().color;
|
||||
};
|
||||
}
|
||||
|
||||
@Override
|
||||
public BlockColorProvider getProvider() {
|
||||
return blockProvider;
|
||||
return (state, world, pos, tintIndex) -> {
|
||||
return this.getDefaultMaterialColor().color;
|
||||
};
|
||||
}
|
||||
|
||||
@Override
|
||||
public ItemColorProvider getItemProvider() {
|
||||
return itemProvider;
|
||||
return (stack, tintIndex) -> {
|
||||
return this.getDefaultMaterialColor().color;
|
||||
};
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue