Mojira Archive
MCM-727

Tags are not being added and/or removed from entities correctly

Partner Rank: 1

Partner Team Reporting: Spark Squared

Verification builds: 1.13.0.1

Summary

Tags are not being added and/or removed from entities correctly. Getting added when they should not be, and not removed even when running the appropriate command.

Impact:

Maps using tags will become unplayable, Furniture - Modern being one of them

Repro Steps:

  1. Ensure asserts are off
  2. Place down an impulse command block and two chain command blocks in a line
  3. In the impulse type: /tag @a remove a
  4. In the first chain type: /tag @a remove b
  5. In the third chain type: /tag @a add a
  6. Place down a lever/button and run the three commands

Observed Results:

When typing “/tag @a list”, it outputs the expected result that the player has the “a” tag. However, on removing the tag with “/tag @a remove a” and then running “/tag @a list” again, there is the unexpected addition of the “b” tag, even though it was never explicitly added. Furthermore, upon removing the “b” tag with “tag @s remove b”, the “a” tag re-appears. 

When running with asserts on, on attempting to remove the “b” tag (after removing the “a” tag), the following assertion failed:

---------------------------

Assert Failure - ctrl+C to copy this message to the clipboard!

---------------------------

Assertion failed: Attempting to drop a tag that doesn't exist in the cache.

Condition is false: false

Function: ServerLevel::dropEntryFromTagCache in f:\darwinwork\10\s\handheld\src\common\server\serverlevel.cpp @ 254

 

---------------------------

OK   

---------------------------

Expected Results:

The “a” tag should only be added, and then removed with a subsequent “/tag @s remove a”

Screenshots/Videos attached: Yes/No

https://streamable.com/v08fj

 

Regression Builds:

Tested in 1.12.0.14 and it worked as expected

Fixed

roelie - Spark Squared

2019-07-05, 12:20 AM

2019-09-10, 01:17 AM

2019-07-10, 09:23 PM

1

2

Future Release

-