Modding:Adding Block Behavior/ru: Difference between revisions
From Vintage Story Wiki
Akellagray (talk | contribs) (Created page with "// Можем ли мы разместить блок там? if (world.BlockAccessor.GetBlock(pos).IsReplacableBy(block)) { // Remove the block at the cur...") |
Akellagray (talk | contribs) (Created page with "// Сообщаем игровому движку о других действиях блока, которые мы обрабатывали при взаимодействи...") |
||
Line 53: | Line 53: | ||
} | } | ||
// | // Сообщаем игровому движку о других действиях блока, которые мы обрабатывали при взаимодействии игроков с блоком. | ||
// | // Если бы мы не установили поле обработки, игрок все равно мог бы размещать блоки, если бы он держал их в руках. | ||
handling = EnumHandling.PreventDefault; | |||
return true; | return true; | ||
} | |||
</syntaxhighlight> | </syntaxhighlight> | ||