Skip to content

Conversation

@abrahamtorrestorres
Copy link
Contributor

This is a minimal change.

Increase the FPS range label width from 0.1 to 0.12 to prevent the label text from being cut off.

This is a minimal change.

It changes the FPS range label width from 0.1 to 0.12 so the label text doesn't get cut off.
@abrahamtorrestorres
Copy link
Contributor Author

I've pushed a commit to resolve the two linter warnings in [editor]/editor_main/client/elementcreation.lua.

The issue was due to operator precedence, where not was being evaluated before the == comparison. I've corrected the logic to use the not-equal operator (~=) and and.

Before:

if not elementType == "object" or not elementType == "vehicle" then

After:

if elementType ~= "object" and elementType ~= "vehicle" then

This resolves the warnings and ensures the logic is correct.

@abrahamtorrestorres abrahamtorrestorres changed the title admin: Fix panel FPS range label width admin: Fix panel FPS range label width + Fixed lint error Jul 17, 2025
@Dutchman101 Dutchman101 merged commit 80297dd into multitheftauto:master Jul 23, 2025
1 check passed
@abrahamtorrestorres abrahamtorrestorres deleted the abrahamtorrestorres-patch-1 branch August 4, 2025 17:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants