Fixes wood duplicating exploit with bookcase

Fixes  #5973