fixed problem with th state of the dipsenser after the event

added missing "block.getState().update();"