Mirror von
https://github.com/GeyserMC/Geyser.git
synchronisiert 2024-12-26 16:12:46 +01:00
Fix frog color translation
Dieser Commit ist enthalten in:
Ursprung
81bb6f124e
Commit
eb23a46887
@ -54,7 +54,12 @@ public class FrogEntity extends AnimalEntity {
|
||||
}
|
||||
|
||||
public void setFrogVariant(IntEntityMetadata entityMetadata) {
|
||||
dirtyMetadata.put(EntityData.VARIANT, entityMetadata.getPrimitiveValue());
|
||||
int variant = entityMetadata.getPrimitiveValue();
|
||||
dirtyMetadata.put(EntityData.VARIANT, switch (variant) {
|
||||
case 1 -> 2; // White
|
||||
case 2 -> 1; // Green
|
||||
default -> variant;
|
||||
});
|
||||
}
|
||||
|
||||
public void setTongueTarget(ObjectEntityMetadata<OptionalInt> entityMetadata) {
|
||||
|
@ -110,7 +110,7 @@ public class MathUtils {
|
||||
* @param high The high bound of the clamp
|
||||
* @return the clamped value
|
||||
*/
|
||||
public static double clamp(float value, float low, float high) {
|
||||
public static float clamp(float value, float low, float high) {
|
||||
if (value < low) {
|
||||
return low;
|
||||
}
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren