[Bug Fix] Fix +/- 0.1 XYZ Door Manipulation (#3527)

# Notes
- We were checking if this was a number, not a float.
This commit is contained in:
Alex King 2023-08-01 23:16:29 -04:00 committed by GitHub
parent 5a466da96c
commit 00a8a0cf88
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -47,7 +47,7 @@ void DoorManipulation::CommandHandler(Client *c, const Seperator *sep)
const std::string set_size_action = "set_size"; const std::string set_size_action = "set_size";
// we're passing a move action here // we're passing a move action here
if (!arg3.empty() && Strings::IsNumber(arg3)) { if (!arg3.empty() && (Strings::IsFloat(arg3) || Strings::IsNumber(arg3))) {
float x_move = 0.0f; float x_move = 0.0f;
float y_move = 0.0f; float y_move = 0.0f;
float z_move = 0.0f; float z_move = 0.0f;