mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-04 18:41:51 +00:00
Minor item refactor
This commit is contained in:
parent
b5739c678f
commit
c9576f1fc4
3 changed files with 7 additions and 4 deletions
|
|
@ -241,7 +241,7 @@ void PlayerController::updateInteraction(){
|
|||
|
||||
ItemDef* item = contentIds->getItemDef(player->chosenItem);
|
||||
|
||||
Block* def = level->content->findBlock(item->placingBlock);
|
||||
Block* def = contentIds->getBlockDef(item->rt.placingBlock);
|
||||
if (def && def->rotatable){
|
||||
const std::string& name = def->rotations.name;
|
||||
if (name == "pipe") {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue