Modding:Adding Block Behavior: Difference between revisions

From Vintage Story Wiki
Line 51: Line 51:
         }
         }


         // 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.
         // 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;
         handling = EnumHandling.PreventDefault;
         return true;
         return true;
Confirmedusers, Bureaucrats, editor, Administrators
1,779

edits