Removed the redundant LocationTag location field in favor of directly referencing it where relevant.
Updated getContext to modern switch syntax.
Fixed context.source_location returning the block that it spread to instead of the source block (had the wrong method call - tested on both 1.20.2 and 1.17.1 and it seemed to work fine).
Changes
Removed the redundantLocationTag location
field in favor of directly referencing it where relevant.getContext
to modern switch syntax.context.source_location
returning the block that it spread to instead of the source block (had the wrong method call - tested on both1.20.2
and1.17.1
and it seemed to work fine).Reported here.