Mojira Archive
MCM-557

Timer component improperly inherits "time" value

Partner Rank:

2

Partner Team Reporting:

Pathway Studios

Verification builds and Platforms:

1.10.0.7 RC2 (Minecraft-Release_UAP_x64_1846015) 

Summary:

In behavior packs, if a component group with the "timer" component is removed before its "time_down_event", the next "timer" component added inherits the "time" value of the previous component instead of using its own defined "time".

Impact:

This prevents more complicated entity behaviors where timers may be interrupted by player inputs.  In Restaurant Simulator, instead of exiting once food is delivered customers cannot move until the inherited time from the 5-second patience timer expires.

Repro Steps:

  1. Download and open the attached world
  2. Spawn a dolphin
  3. Observe how long the dolphin remains large

Observed Results:

The dolphin is large for 10 seconds before reverting to normal size.

Expected Results:

The dolphin should be large for 1 second before reverting to normal size.

Screenshot/Video?

Yes, attached.

Regression Builds:

1.9.0.14 Minecraft-Release_UAP_x64_1627786

Notes:

In the behavior file, the timer_test component is added when a dolphin spawns.  This component group includes a 10 second timer, and is removed before that timer reaches its time_down_event.  The "big" component group is then added with a 1 second timer, after which the dolphin returns to normal scale.

Fixed

MrSquishy

2019-03-11, 06:54 PM

2019-05-29, 01:23 AM

2019-05-29, 01:23 AM

0

1

Future Release

-