Minor item refactor

This commit is contained in:
MihailRis
2024-01-09 12:58:35 +03:00
parent b5739c678f
commit c9576f1fc4
3 changed files with 7 additions and 4 deletions
+1 -1
View File
@@ -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") {