Bug Closed · Resolved

Multi Templates not working as Intended

#4239 opened by Unknown 3 years ago

Unknownreported this bug

When using multi templates, the correct behavior would be for templates to be loaded from leftmost to rightmost, and thus making the leftmost template being applied first and the rightmost template being applied last, giving the rightmost template the most "priority" over the others, making it override other options.

The opposite is happening.

For example, give this a try:

TestTemplate1:
  Type: ZOMBIE
  Equipment:
  - SHIELD OFFHAND
TestTemplate2:
  Type: ZOMBIE
  Equipment:
  - AIR OFFHAND

# 2 is applied last, so no shield should be present, but it is
TestTemplate3:
  Template: TestTemplate1, TestTemplate2
# 1 is applied last, so a shield should be present, but it's not
TestTemplate4:
  Template: TestTemplate2, TestTemplate1

Test Enviroment: MC 1.19.4 Paper 550 MythicMobs Dev Build 4682

Sign in to join the discussion.