Fix June barrel config

This commit is contained in:
thedarkcolour 2024-06-12 11:08:44 -07:00
parent 4c7a15b625
commit b3e0130589
No known key found for this signature in database
GPG Key ID: 6599A8E0516C8F38

View File

@ -39,6 +39,7 @@ import thedarkcolour.exdeorum.ExDeorum;
import thedarkcolour.exdeorum.block.BarrelBlock;
import thedarkcolour.exdeorum.blockentity.BarrelBlockEntity;
import thedarkcolour.exdeorum.client.RenderUtil;
import thedarkcolour.exdeorum.config.EConfig;
public class BarrelRenderer implements BlockEntityRenderer<BarrelBlockEntity> {
public static final ResourceLocation COMPOST_DIRT_TEXTURE = new ResourceLocation(ExDeorum.ID, "block/compost_dirt");
@ -114,7 +115,7 @@ public class BarrelRenderer implements BlockEntityRenderer<BarrelBlockEntity> {
float compostProgress = barrel.progress;
int r, g, b;
if (ExDeorum.IS_JUNE && barrel.getLevel() != null) {
if (ExDeorum.IS_JUNE && EConfig.CLIENT.rainbowCompostDuringJune.get() && barrel.getLevel() != null) {
var rainbow = RenderUtil.getRainbowColor(barrel.getLevel().getGameTime(), partialTicks);
r = rainbow.getRed();
g = rainbow.getGreen();