mirror of
https://github.com/Minestom/Minestom.git
synced 2025-02-14 03:11:25 +01:00
Fix EffectChance network writer (#2429)
This commit is contained in:
parent
1d360f3b3e
commit
1c47dd613f
@ -74,7 +74,8 @@ public record Food(int nutrition, float saturationModifier, boolean canAlwaysEat
|
||||
public static final NetworkBuffer.Type<EffectChance> NETWORK_TYPE = new NetworkBuffer.Type<>() {
|
||||
@Override
|
||||
public void write(@NotNull NetworkBuffer buffer, EffectChance value) {
|
||||
|
||||
CustomPotionEffect.NETWORK_TYPE.write(buffer, value.effect);
|
||||
buffer.write(NetworkBuffer.FLOAT, value.probability);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
Loading…
Reference in New Issue
Block a user