Translations:Modding:Adding Block Behavior/15/en

From Vintage Story Wiki
Revision as of 12:27, 14 May 2020 by FuzzyBot (talk | contribs) (Importing a new version from external source)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

// Notify the game engine other block behaviors that we handled the players interaction with the block.

       // If we would not set the handling field the player would still be able to place blocks if he has them in hands.
       handling = EnumHandling.PreventDefault;
       return true;
   }

</syntaxhighlight>