Clear old item groups when they are overridden. (#8753)
authorBeha <shacknetisp@mail.com>
Mon, 12 Aug 2019 17:18:52 +0000 (13:18 -0400)
committersfan5 <sfan5@live.de>
Mon, 12 Aug 2019 17:18:52 +0000 (19:18 +0200)
commit2f879e8bbd8329e4c796dc1f7eeea9bdc3be2b3d
treeddccb9eccf10cb14cec8a16ee745273bbf4d24f6
parent91114b562fb2c65467485008b810836f951274ea
Clear old item groups when they are overridden. (#8753)

This fixes overridden items keeping their old groups in the group to
items mapping even after their groups have been changed in lua.
It also prevents a more widespread issue where overriding an item
will add its content ID *twice* to the mapping, resulting in odd
behaviour in features such as ABMs.
src/nodedef.cpp
src/nodedef.h