Skip to content
  • Auke Kok's avatar
    TNT: Add on_blast to all nodes with an inventory · 54b87e95
    Auke Kok authored
    Adds a minor helper function that allows efficient retrieval of
    several inventories from a node inventory. We use this helper to
    quickly retrieve the items in chests, vessel shelves, book shelves
    and furnaces, and return these with the nodes itself to the TNT caller.
    
    The TNT caller then performs the entity physics, and we don't need
    to do anything else.
    
    We disable TNT doing anything with bones.
    
    We expose a bug in the code that drops the items - metadata was lost
    entirely. This patch corrects that by properly copying the metadata
    and creating the drops list inclusive metadata.
    54b87e95