Bug Closed · Resolved

Condition "TO" Comparator Not Working With Negative Second Integer

#3874 opened by Unknown 3 years ago

Unknownreported this bug

Summary

Using any conditions while comparing using the "TO" method (#TO#) don't seem to work when the second integer is a negative value.

Steps to reproduce

Use a condition with the second integer in a TO operation being a negative value.

Current behavior

Using any conditions while comparing using the "TO" method (#TO#) don't seem to work when the second integer is a negative value.

Intended correct behavior

Using a condition with the "TO" method should work when the second integer is a negative value.

Server log file

N/A. No errors reported.

Debug log snippet

N/A. No errors reported.

Proposed fixes

Possible syntax/coding issue? I'm not honestly sure.

Example Skills

Skills That Work:

  • sound{s=block.note_block.guitar;pitch=1} @Self ~onUse ?pitch{p=-10to10}
  • sound{s=block.note_block.guitar;pitch=0.5} @Self ~onUse ?pitch{p=11to90}

Skills That Do Not Work:

  • sound{s=block.note_block.guitar;pitch=1.5} @Self ~onUse ?pitch{p=-11to-30}
  • sound{s=block.note_block.guitar;pitch=2} @Self ~onUse ?pitch{p=-31to-90}
Unknowncommented

For range values, it has to be from lowest to highest. So instead of ?pitch{p=-11to-30}, it would be ?pitch{p=-30to-11}

Unknowncommented

Fix will show up in the dev builds soon

Sign in to join the discussion.