mirror of
https://github.com/Minestom/Minestom.git
synced 2025-02-19 05:41:21 +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<>() {
|
public static final NetworkBuffer.Type<EffectChance> NETWORK_TYPE = new NetworkBuffer.Type<>() {
|
||||||
@Override
|
@Override
|
||||||
public void write(@NotNull NetworkBuffer buffer, EffectChance value) {
|
public void write(@NotNull NetworkBuffer buffer, EffectChance value) {
|
||||||
|
CustomPotionEffect.NETWORK_TYPE.write(buffer, value.effect);
|
||||||
|
buffer.write(NetworkBuffer.FLOAT, value.probability);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
Loading…
Reference in New Issue
Block a user