| 344 | } |
| 345 | |
| 346 | TileModificationList WorldClient::validTileModifications(TileModificationList const& modificationList, bool allowEntityOverlap) const { |
| 347 | if (!inWorld()) |
| 348 | return {}; |
| 349 | |
| 350 | return WorldImpl::splitTileModifications(m_entityMap, modificationList, allowEntityOverlap, m_tileGetterFunction, [this](Vec2I pos, TileModification) { |
| 351 | return !isTileProtected(pos); |
| 352 | }).first; |
| 353 | } |
| 354 | |
| 355 | TileModificationList WorldClient::applyTileModifications(TileModificationList const& modificationList, bool allowEntityOverlap) { |
| 356 | if (!inWorld()) |
nothing calls this directly
no test coverage detected