| 485 | } |
| 486 | |
| 487 | MaterialHue MaterialItem::placementHueShift(Vec2I const& pos) const { |
| 488 | if (auto hue = instanceValue("materialHueShift")) { |
| 489 | return materialHueFromDegrees(hue.toFloat()); |
| 490 | } else if (auto worldClient = as<WorldClient>(world())) { |
| 491 | auto worldTemplate = worldClient->currentTemplate(); |
| 492 | return worldTemplate->biomeMaterialHueShift(worldTemplate->blockBiomeIndex(pos[0], pos[1]), m_material); |
| 493 | } else { |
| 494 | return materialHueShift(); |
| 495 | } |
| 496 | } |
| 497 | |
| 498 | } |
nothing calls this directly
no test coverage detected