function PlayerSpots.applyArt(L,m,n,w)local t=nil for m,w in ipairs(L.placedSpots)do if w.spot.id==n then t=w break end end if not t then return false,constants.Errors.SpotNotFound end if L.toRemove then local m=L.placedSpots[L.toRemove]m.spot:removeArt()L.toRemove=nil end t.spot:applyArt(m,w)return true,nil end

function PlayerSpots:applyArt(player, spotId, artId)
	local placedSpot = nil
	for _, value in ipairs(self.placedSpots) do
		if value.spot.id == spotId then
			placedSpot = value
			break
		end
	end

	if not placedSpot then
		return false, constants.Errors.SpotNotFound
	end

	-- Remove old art
	if self.toRemove then
		local placedSpotToRemove = self.placedSpots[self.toRemove]
		placedSpotToRemove.spot:removeArt()
		self.toRemove = nil
	end

	placedSpot.spot:applyArt(player, artId)

	return true, nil
end
