Mojira Archive
MCPE-157405

Hasitem filter accepts negative data numbers.

When using the hasitem filter, the hasitem filter will accept negative data values.

Steps to Reproduce:

  1. Open a Minecraft World.
  2. Run /testfor @a[hasitem=\{item=allow,data=-5}]
  3. Observe

Observed Results:

Game accepts negative value

Expected Results:

Game should not accept a negative value

Duplicate

Free_World

2022-06-13, 05:40 AM

2022-06-13, 02:30 PM

2022-06-13, 02:25 PM

0

0

Unconfirmed

1.19.10.22 Preview, 1.19.1 Switch, 1.19.0

-