mirror of
https://github.com/GeyserMC/Geyser.git
synced 2025-01-16 14:32:59 +01:00
No need to cast here (thanks Konica)
This commit is contained in:
parent
9568a3a866
commit
3835da288f
1 changed files with 1 additions and 1 deletions
|
@ -309,7 +309,7 @@ public class Entity {
|
|||
// The value that Java edition gives us is in ticks, but Bedrock uses a float percentage of the strength 0.0 -> 1.0
|
||||
// The Java client caps its freezing tick percentage at 140
|
||||
int freezingTicks = Math.min((int) entityMetadata.getValue(), 140);
|
||||
metadata.put(EntityData.FREEZING_EFFECT_STRENGTH, (freezingTicks / (float) 140));
|
||||
metadata.put(EntityData.FREEZING_EFFECT_STRENGTH, (freezingTicks / 140f));
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue