|
@@ -320,7 +320,13 @@ void Block::updateModel(ModelInfo info) const
|
|
|
|
|
|
BasicBlockItem::BasicBlockItem(
|
|
|
int itemTypeId, int blockTypeId, const char* name)
|
|
|
- : Item(itemTypeId, name)
|
|
|
+ : Item(itemTypeId, name),
|
|
|
+ transparent(0),
|
|
|
+ passable(0),
|
|
|
+ hardness(1.f),
|
|
|
+ toolId(0),
|
|
|
+ speedModifier(1.f),
|
|
|
+ interactable(1)
|
|
|
{
|
|
|
this->blockTypeId = blockTypeId;
|
|
|
placeable = 1;
|
|
@@ -394,6 +400,7 @@ Item* BasicBlockItemType::createItem() const
|
|
|
item->hardness = hardness;
|
|
|
item->toolId = toolId;
|
|
|
item->speedModifier = speedModifier;
|
|
|
+ item->interactable = 1;
|
|
|
return item;
|
|
|
}
|
|
|
|