Mark fluidState redirect as optional for old Lithium/VMP versions

This commit is contained in:
embeddedt 2023-08-02 16:41:23 -04:00
parent f76ca049cc
commit 26998e912b
No known key found for this signature in database
GPG Key ID: A69433EC199B5613

View File

@ -70,7 +70,7 @@ public abstract class BlockStateBaseMixin implements IBlockState {
opcode = Opcodes.GETFIELD,
target = "Lnet/minecraft/world/level/block/state/BlockBehaviour$BlockStateBase;fluidState:Lnet/minecraft/world/level/material/FluidState;",
ordinal = 0
))
), require = 0)
private FluidState genCacheBeforeGettingFluid(BlockBehaviour.BlockStateBase base) {
generateCache(base);
return this.fluidState;