Skip to content

Commit

Permalink
Made Speed Modifier Float
Browse files Browse the repository at this point in the history
  • Loading branch information
Leclowndu93150 committed Jun 18, 2024
1 parent ecf706d commit 2df219a
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,6 @@ public class DataComponentRegistry {
public static final Supplier<DataComponentType<Boolean>> MINING_MODIFIER = COMPONENTS.registerComponentType("mining_modifier",
builder -> builder.persistent(Codec.BOOL).networkSynchronized(ByteBufCodecs.BOOL));

public static final Supplier<DataComponentType<Boolean>> SPEED_MODIFIER = COMPONENTS.registerComponentType("speed_modifier",
builder -> builder.persistent(Codec.BOOL).networkSynchronized(ByteBufCodecs.BOOL));
public static final Supplier<DataComponentType<Float>> SPEED_MODIFIER = COMPONENTS.registerComponentType("speed_modifier",
builder -> builder.persistent(Codec.FLOAT).networkSynchronized(ByteBufCodecs.FLOAT));
}

0 comments on commit 2df219a

Please sign in to comment.