fix line separators

This commit is contained in:
2026-04-24 17:52:43 -04:00
parent 75b973f7f2
commit 9aa79bb6ba
1886 changed files with 8 additions and 3 deletions
Regular → Executable
View File
View File
View File
Regular → Executable
View File
Regular → Executable
View File
Regular → Executable
View File
Regular → Executable
View File
View File
View File
View File
Regular → Executable
View File
Regular → Executable
View File
View File
@@ -122,6 +122,10 @@ public class FossilCleanerBlockEntity extends BlockEntity implements ExtendedMen
return fluidStack; return fluidStack;
} }
private void setFluid(FluidStack stack) {
this.fluidStack = stack == null || stack.isEmpty() ? FluidStack.empty() : stack;
}
@Override @Override
public Component getDisplayName() { public Component getDisplayName() {
return Component.translatable("block.jurassicrevived.fossil_cleaner"); return Component.translatable("block.jurassicrevived.fossil_cleaner");
@@ -125,7 +125,7 @@ public class TankBlockEntity extends BlockEntity implements ExtendedMenuProvider
} }
public void setFluid(FluidStack stack) { public void setFluid(FluidStack stack) {
this.fluidStack = stack; this.fluidStack = stack == null || stack.isEmpty() ? FluidStack.empty() : stack;
setChanged(); setChanged();
if (level != null && !level.isClientSide()) { if (level != null && !level.isClientSide()) {
level.sendBlockUpdated(getBlockPos(), getBlockState(), getBlockState(), 3); level.sendBlockUpdated(getBlockPos(), getBlockState(), getBlockState(), 3);
@@ -5,6 +5,7 @@ import com.mojang.blaze3d.vertex.VertexConsumer;
import com.mojang.math.Axis; import com.mojang.math.Axis;
import dev.architectury.fluid.FluidStack; import dev.architectury.fluid.FluidStack;
import dev.architectury.hooks.fluid.FluidStackHooks; import dev.architectury.hooks.fluid.FluidStackHooks;
import net.cmr.jurassicrevived.Constants;
import net.cmr.jurassicrevived.block.entity.custom.TankBlockEntity; import net.cmr.jurassicrevived.block.entity.custom.TankBlockEntity;
import net.minecraft.client.Minecraft; import net.minecraft.client.Minecraft;
import net.minecraft.client.renderer.ItemBlockRenderTypes; import net.minecraft.client.renderer.ItemBlockRenderTypes;
@@ -42,7 +43,7 @@ public class TankBlockEntityRenderer implements BlockEntityRenderer<TankBlockEnt
if (isMissing(sprite)) { if (isMissing(sprite)) {
if (fluidStack.getFluid() == Fluids.WATER) { if (fluidStack.getFluid() == Fluids.WATER) {
sprite = Minecraft.getInstance().getTextureAtlas(InventoryMenu.BLOCK_ATLAS) sprite = Minecraft.getInstance().getTextureAtlas(InventoryMenu.BLOCK_ATLAS)
.apply(new ResourceLocation("block/water_still")); .apply(Constants.r2("block/water_still"));
} }
} }
View File
View File

Some files were not shown because too many files have changed in this diff Show More