| 1807 | } |
| 1808 | |
| 1809 | void WorldServer::setLiquid(Vec2I const& pos, LiquidId liquid, float level, float pressure) { |
| 1810 | if (ServerTile* tile = m_tileArray->modifyTile(pos)) { |
| 1811 | if (liquid == EmptyLiquidId) |
| 1812 | level = 0; |
| 1813 | |
| 1814 | if (auto netUpdate = tile->liquid.update(liquid, level, pressure)) { |
| 1815 | for (auto const& pair : m_clientInfo) { |
| 1816 | if (pair.second->activeSectors.contains(m_tileArray->sectorFor(pos))) |
| 1817 | pair.second->pendingLiquidUpdates.add(pos); |
| 1818 | } |
| 1819 | } |
| 1820 | } |
| 1821 | } |
| 1822 | |
| 1823 | List<ItemDescriptor> WorldServer::destroyBlock(TileLayer layer, Vec2I const& pos, bool genItems, bool destroyModFirst, bool updateNeighbors) { |
| 1824 | auto materialDatabase = Root::singleton().materialDatabase(); |
nothing calls this directly
no test coverage detected