Skip to content

Commit

Permalink
Fix cherry pick issues
Browse files Browse the repository at this point in the history
  • Loading branch information
modmuss50 committed Sep 23, 2024
1 parent 5253a6d commit d831205
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
import net.minecraft.component.DataComponentTypes;
import net.minecraft.fluid.Fluid;
import net.minecraft.fluid.Fluids;
import net.minecraft.text.Text;
import net.minecraft.util.Unit;

import net.fabricmc.fabric.api.transfer.v1.fluid.FluidVariant;
Expand All @@ -52,7 +53,7 @@ public void testWithComponentChanges() {

FluidVariant newVariant = variant.withComponentChanges(ComponentChanges.builder()
.remove(DataComponentTypes.HIDE_TOOLTIP)
.add(DataComponentTypes.GLIDER, Unit.INSTANCE)
.add(DataComponentTypes.CUSTOM_NAME, Text.literal("Test"))
.build());

Assertions.assertFalse(
Expand All @@ -61,7 +62,7 @@ public void testWithComponentChanges() {
);

Assertions.assertTrue(
newVariant.getComponentMap().contains(DataComponentTypes.GLIDER),
newVariant.getComponentMap().contains(DataComponentTypes.CUSTOM_NAME),
"New variant's GLIDER component was added, but is not present"

This comment has been minimized.

Copy link
@Earthcomputer

Earthcomputer Sep 24, 2024

Contributor

This message should have been updated too

);
}
Expand Down

0 comments on commit d831205

Please sign in to comment.