Fix mixin

This commit is contained in:
Sollace 2023-09-29 21:28:07 +01:00
parent c3c2ba461a
commit 44bde9fd16
No known key found for this signature in database
GPG key ID: E52FACE7B5C773DB

View file

@ -37,13 +37,6 @@ abstract class MixinBoatEntity extends Entity implements LavaAffine {
return isLavaAffine() ? FluidTags.LAVA : FluidTags.WATER;
}
@Inject(method = "copyEntityData", at = @At("HEAD"))
private void onCopyEntityData(Entity entity, CallbackInfo info) {
if (entity instanceof LavaAffine affine) {
affine.setLavaAffine(isLavaAffine());
}
}
@Inject(method = "writeCustomDataToNbt", at = @At("HEAD"))
private void onWriteCustomDataToNbt(NbtCompound nbt, CallbackInfo info) {
nbt.putBoolean("IsLavaAffine", isLavaAffine());