1
0
mirror of https://github.com/GeyserMC/Geyser.git synced 2025-12-19 14:59:27 +00:00

Fix: Entity property min/max being flipped

This commit is contained in:
onebeastchris
2025-10-28 20:53:24 +01:00
parent 3c08b31453
commit d8058766cc

View File

@@ -1272,7 +1272,7 @@ public final class EntityDefinitions {
if (propertyId.vanilla()) {
throw new IllegalArgumentException("Cannot register custom property in vanilla namespace! " + propertyId);
}
FloatProperty property = new FloatProperty(propertyId, min, max, defaultValue);
FloatProperty property = new FloatProperty(propertyId, max, min, defaultValue);
registerProperty(identifier, property);
return property;
}
@@ -1284,7 +1284,7 @@ public final class EntityDefinitions {
if (propertyId.vanilla()) {
throw new IllegalArgumentException("Cannot register custom property in vanilla namespace! " + propertyId);
}
IntProperty property = new IntProperty(propertyId, min, max, defaultValue);
IntProperty property = new IntProperty(propertyId, max, min, defaultValue);
registerProperty(identifier, property);
return property;
}