#BlockEvent silently registers for all events if ID doesn't exist

4 messages · Page 1 of 1 (latest)

pure delta
#

Ran into a bug where BlockEvents.broken('#tfc:mineable_with_sharp_tool', event => { would trigger on every block, because BlockEvents seems to want a block ID, not a tag.

Of course it's an easy fix but it was hard to find the bug in the first place!

  • Is it intended that if no block IDs match, that then every block triggers the event method? That seems pretty bad and makes it hard to catch bugs and typos
  • Is it possible to filter on block tag in the event subscription?
dreamy shardBOT
#

Once your ticket has been resolved, please close it with </ticket close:1054771505520717835> command!

pure delta
#

BlockEvent silently registers for all events if ID doesn't exist

pure delta