File tree Expand file tree Collapse file tree 1 file changed +1
-2
lines changed Expand file tree Collapse file tree 1 file changed +1
-2
lines changed Original file line number Diff line number Diff line change @@ -1152,7 +1152,6 @@ Local<Value> EntityClass::setUnderwaterMovementSpeed(const Arguments& args) {
1152
1152
1153
1153
MutableAttributeWithContext attribute =
1154
1154
entity->getMutableAttribute (SharedAttributes::UNDERWATER_MOVEMENT_SPEED ());
1155
- auto & instance = attribute.mInstance ;
1156
1155
AttributeHelper::setCurrentValue (attribute, args[0 ].asNumber ().toFloat ());
1157
1156
1158
1157
return Boolean::newBoolean (true );
@@ -1185,7 +1184,7 @@ Local<Value> EntityClass::setMaxHealth(const Arguments& args) {
1185
1184
if (!entity) return Local<Value>();
1186
1185
1187
1186
MutableAttributeWithContext attribute = entity->getMutableAttribute (SharedAttributes::HEALTH ());
1188
- AttributeHelper::setCurrentValue (attribute, args[0 ].asNumber ().toFloat ());
1187
+ AttributeHelper::setMaxValue (attribute, args[0 ].asNumber ().toFloat ());
1189
1188
1190
1189
return Boolean::newBoolean (true );
1191
1190
}
You can’t perform that action at this time.
0 commit comments