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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user